net.kano.joscar.tlv
Class ImmutableTlvChain

java.lang.Object
  extended byAbstractTlvChain
      extended byImmutableTlvChain
All Implemented Interfaces:
LiveWritable, TlvChain, Writable

public final class ImmutableTlvChain
extends AbstractTlvChain

An immutable TLV chain, a TLV chain that cannot be modified after its creation.


Method Summary
protected  java.util.List getTlvList()
          Returns a list of all of the TLV's in this chain.
protected  java.util.Map getTlvMap()
          Returns a map from TLV types (as Integers) to TLV lists (as Lists).
 
Methods inherited from class AbstractTlvChain
addTlvImpl, copy, createSiblingList, getFirstTlv, getLastTlv, getString, getString, getTlvCount, getTlvs, getTlvs, getTotalSize, getUInt, getUShort, getWritableLength, hasTlv, initFromBlock, iterator, toString, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getTlvList

protected final java.util.List getTlvList()
Description copied from class: AbstractTlvChain
Returns a list of all of the TLV's in this chain.

Specified by:
getTlvList in class AbstractTlvChain
Returns:
a list containing each of the TLV's in this chain, in order

getTlvMap

protected final java.util.Map getTlvMap()
Description copied from class: AbstractTlvChain
Returns a map from TLV types (as Integers) to TLV lists (as Lists). The list should contain all TLV's of the given TLV type that exist in this TLV chain, in the same order as they appear in the full list.

Specified by:
getTlvMap in class AbstractTlvChain
Returns:
a map from TLV type to