Interface IdentityTable<T>

Type Parameters:
T - the table entry type

public interface IdentityTable<T>
Generic identity table.
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
    findWriter(T value)
    Returns a writer for the specified object.
    static <T> IdentityTable<T>
    from(List<T> entries)
    Creates an identity table from the list of table entries.
    read(org.jboss.marshalling.Unmarshaller unmarshaller)
    Reads an object from the specified unmarshaller.
  • Method Details

    • findWriter

      Writable<T> findWriter(T value)
      Returns a writer for the specified object.
      Parameters:
      value - an object
      Returns:
      a writer for the specified object, or null, if none exists.
    • read

      T read(org.jboss.marshalling.Unmarshaller unmarshaller) throws IOException
      Reads an object from the specified unmarshaller.
      Parameters:
      unmarshaller - an unmarshaller
      Returns:
      the read object
      Throws:
      IOException - if the object could not be read
    • from

      static <T> IdentityTable<T> from(List<T> entries)
      Creates an identity table from the list of table entries.
      Type Parameters:
      T - the table entry type
      Parameters:
      entries - a list of table entries
      Returns:
      an identity table from the list of table entries.