/** * @return the value bytes corresponds to the given ID * @throws IllegalArgumentException * if ID is not found in dictionary */ final public byte[] getValueByteFromId(int id) throws IllegalArgumentException { if (isNullId(id)) return null; else return getValueBytesFromIdImpl(id); }
/** * @return the value corresponds to the given ID * @throws IllegalArgumentException * if ID is not found in dictionary */ final public T getValueFromId(int id) throws IllegalArgumentException { if (isNullId(id)) return null; else return getValueFromIdImpl(id); }
/** * @return the value corresponds to the given ID * @throws IllegalArgumentException * if ID is not found in dictionary */ final public T getValueFromId(int id) { if (isNullId(id)) return null; else return getValueFromIdImpl(id); }
/** * @return the value bytes corresponds to the given ID * @throws IllegalArgumentException * if ID is not found in dictionary */ final public byte[] getValueByteFromId(int id) throws IllegalArgumentException { if (isNullId(id)) return null; else return getValueBytesFromIdImpl(id); }
/** * @return the value corresponds to the given ID * @throws IllegalArgumentException * if ID is not found in dictionary */ final public T getValueFromId(int id) throws IllegalArgumentException { if (isNullId(id)) return null; else return getValueFromIdImpl(id); }
/** * A lower level API, get byte values from ID, return the number of bytes * written. Bypassing the cache layer, this could be significantly slower * than getIdFromValue(T value). * * @return size of value bytes, 0 if empty string, -1 if null * * @throws IllegalArgumentException * if ID is not found in dictionary */ final public int getValueBytesFromId(int id, byte[] returnValue, int offset) { if (isNullId(id)) return -1; else return getValueBytesFromIdImpl(id, returnValue, offset); }