Class EvolvableHolder

    • Field Detail

      • m_mapEvolvable

        protected Map<Integer,​Evolvable> m_mapEvolvable
        Map of Evolvable objects, keyed by type id.
    • Constructor Detail

      • EvolvableHolder

        public EvolvableHolder()
    • Method Detail

      • get

        public Evolvable get​(Integer idType)
        Return an Evolvable for the specified type id.
        Parameters:
        idType - type identifier
        Returns:
        an Evolvable instance
      • getTypeIds

        public Set<Integer> getTypeIds()
        Return type identifiers for all the Evolvables within this holder.
        Returns:
        type identifiers for all the Evolvables within this holder
      • isEmpty

        public boolean isEmpty()
        Return true if this holder is empty.
        Returns:
        true if this holder is empty, false otherwise
      • readExternal

        public void readExternal​(DataInput in)
                          throws IOException
        Description copied from interface: ExternalizableLite
        Restore the contents of this object by loading the object's state from the passed DataInput object.
        Specified by:
        readExternal in interface ExternalizableLite
        Parameters:
        in - the DataInput stream to read data from in order to restore the state of this object
        Throws:
        IOException - if an I/O exception occurs
        NotActiveException - if the object is not in its initial state, and therefore cannot be deserialized into
      • writeExternal

        public void writeExternal​(DataOutput out)
                           throws IOException
        Description copied from interface: ExternalizableLite
        Save the contents of this object by storing the object's state into the passed DataOutput object.
        Specified by:
        writeExternal in interface ExternalizableLite
        Parameters:
        out - the DataOutput stream to write the state of this object to
        Throws:
        IOException - if an I/O exception occurs