public class TagSet extends Object implements IIdStringMap, IStringIdMap, Iterable<Map.Entry<String,Integer>>, ICacheAble
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 IIdStringMappublic int idOf(String string)
idOf 在接口中 IStringIdMappublic int[] allTags()
public void save(DataOutputStream out) throws IOException
ICacheAblesave 在接口中 ICacheAbleIOExceptionpublic boolean load(ByteArray byteArray)
ICacheAbleload 在接口中 ICacheAblepublic void load(DataInputStream in) throws IOException
IOExceptionpublic Collection<String> tags()
public boolean contains(String tag)
Copyright © 2014–2019 码农场. All rights reserved.