Class ALcyFileTypeDescriptorHolder<T>

java.lang.Object
com.luciad.lucy.util.ALcyFileTypeDescriptorHolder<T>
Type Parameters:
T - The class of the object associated to the ALcyFileTypeDescriptor
Direct Known Subclasses:
TLcyDataSourceHandlerHolder, TLcyGXYLayerDecoderHolder, TLcyGXYLayerEncoderHolder, TLcyLayerStyleCodecHolder, TLcyModelDecoderHolder, TLcyModelEncoderHolder

public abstract class ALcyFileTypeDescriptorHolder<T> extends Object

Object which associates an ALcyFileTypeDescriptor to an instance of T.

Instances of this class are typically used to register both an ALcyFileTypeDescriptor and an instance of T as service on the Lucy back-end.

Please refer to the concrete subclasses for more information about which classes register/use these ALcyFileTypeDescriptorHolder instances.

Since:
10.0
  • Constructor Details

    • ALcyFileTypeDescriptorHolder

      protected ALcyFileTypeDescriptorHolder(ALcyFileTypeDescriptor aFileTypeDescriptor, T aAssociatedObject)

      Create a new ALcyFileTypeDescriptorHolder

      Parameters:
      aFileTypeDescriptor - The file type descriptor. May be null
      aAssociatedObject - The object associated to the file type descriptor. Must not be null.
  • Method Details

    • getFileTypeDescriptor

      public ALcyFileTypeDescriptor getFileTypeDescriptor()
      Returns the file type descriptor.
      Returns:
      the file type descriptor. Can be null.
    • getAssociatedObject

      public T getAssociatedObject()
      Returns the object associated to the file type descriptor
      Returns:
      the object associated to the file type descriptor
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object aFileTypeDescriptorHolder)
      This method will verify whether aFileTypeDescriptorHolder is the same instance as this, or whether it is an ALcyFileTypeDescriptorHolder with the same associated object. It does not take the ALcyFileTypeDescriptor into account.
      Overrides:
      equals in class Object
      Parameters:
      aFileTypeDescriptorHolder - The object to verify
      Returns:
      true when aFileTypeDescriptorHolder is the same instance as this, or whether it is an ALcyFileTypeDescriptorHolder with the same associated object.