Class Int2FS<T extends TOP>

All Implemented Interfaces:
Cloneable, FeatureStructure, FeatureStructureImpl, UimaSerializable, UimaSerializableFSs

public class Int2FS<T extends TOP> extends TOP implements UimaSerializableFSs, Cloneable
A map from ints to Feature Structures Is Pear aware - stores non-pear versions but may return pear version in pear contexts
  • Field Details

  • Constructor Details

    • Int2FS

      protected Int2FS()
      Never called. Disable default constructor
    • Int2FS

      public Int2FS(TypeImpl type, CASImpl casImpl)
      Internal - constructor used by generator
      Parameters:
      casImpl - the CAS this Feature Structure belongs to
      type - the type of this Feature Structure
    • Int2FS

      public Int2FS(JCas jcas)
      Parameters:
      jcas - JCas to which this Feature Structure belongs
    • Int2FS

      public Int2FS(JCas jcas, int length)
      Make a new Int2FS map with an initial capacity.
      Parameters:
      jcas - The JCas
      length - initial size
  • Method Details

    • getTypeIndexID

      public int getTypeIndexID()
      Overrides:
      getTypeIndexID in class TOP
      Returns:
      index of the type
    • _init_from_cas_data

      public void _init_from_cas_data()
      Specified by:
      _init_from_cas_data in interface UimaSerializable
    • _save_to_cas_data

      public void _save_to_cas_data()
      Description copied from interface: UimaSerializable
      This method is called by the framework before serialization of an instance of this JCas class. The implementation should save whatever data is needed into Features of this JCas class that can be serialized by UIMA.
      Specified by:
      _save_to_cas_data in interface UimaSerializable
    • _superClone

      public FeatureStructureImplC _superClone()
      Specified by:
      _superClone in interface UimaSerializable
    • values

      public Collection<T> values()
    • toString

      public String toString()
      Overrides:
      toString in class FeatureStructureImplC
    • size

      public int size()
    • isEmpty

      public boolean isEmpty()
      Checks if is empty.
      Returns:
      true, if is empty
      See Also:
    • containsKey

      public boolean containsKey(Object key)
    • containsValue

      public boolean containsValue(Object value)
    • get

      public T get(int key)
    • put

      public T put(int key, T value)
    • remove

      public T remove(int key)
    • clear

      public void clear()
    • iterator

      public Iterator<IntEntry<T>> iterator()