public class TagSet extends Object implements IIdStringMap, IStringIdMap, Iterable<Map.Entry<String,Integer>>, ICacheAble
| Modifier and Type | Method and Description |
|---|---|
int |
add(String tag) |
int[] |
allTags()
获取所有标签及其下标
|
int |
bosId() |
boolean |
contains(String tag) |
int |
idOf(String string) |
Iterator<Map.Entry<String,Integer>> |
iterator() |
boolean |
load(ByteArray byteArray)
载入
|
void |
load(DataInputStream in) |
void |
lock() |
void |
save(DataOutputStream out)
写入
|
int |
size() |
int |
sizeIncludingBos() |
String |
stringOf(int id) |
Collection<String> |
tags() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic TaskType type
public TagSet(TaskType type)
public int add(String tag)
public int size()
public int sizeIncludingBos()
public int bosId()
public void lock()
public String stringOf(int id)
stringOf in interface IIdStringMappublic int idOf(String string)
idOf in interface IStringIdMappublic int[] allTags()
public void save(DataOutputStream out) throws IOException
ICacheAblesave in interface ICacheAbleIOExceptionpublic boolean load(ByteArray byteArray)
ICacheAbleload in interface ICacheAblepublic void load(DataInputStream in) throws IOException
IOExceptionpublic Collection<String> tags()
public boolean contains(String tag)
Copyright © 2014–2021 码农场. All rights reserved.