Package com.luciad.lucy.util
Class ALcyFileTypeDescriptorHolder<T>
java.lang.Object
com.luciad.lucy.util.ALcyFileTypeDescriptorHolder<T>
- Type Parameters:
T
- The class of the object associated to theALcyFileTypeDescriptor
- Direct Known Subclasses:
TLcyDataSourceHandlerHolder
,TLcyGXYLayerDecoderHolder
,TLcyGXYLayerEncoderHolder
,TLcyLayerStyleCodecHolder
,TLcyModelDecoderHolder
,TLcyModelEncoderHolder
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 Summary
ConstructorsModifierConstructorDescriptionprotected
ALcyFileTypeDescriptorHolder
(ALcyFileTypeDescriptor aFileTypeDescriptor, T aAssociatedObject) Create a newALcyFileTypeDescriptorHolder
-
Method Summary
Modifier and TypeMethodDescriptionboolean
This method will verify whetheraFileTypeDescriptorHolder
is the same instance asthis
, or whether it is anALcyFileTypeDescriptorHolder
with the same associated object.Returns the object associated to the file type descriptorReturns the file type descriptor.int
hashCode()
-
Constructor Details
-
ALcyFileTypeDescriptorHolder
protected ALcyFileTypeDescriptorHolder(ALcyFileTypeDescriptor aFileTypeDescriptor, T aAssociatedObject) Create a new
ALcyFileTypeDescriptorHolder
- Parameters:
aFileTypeDescriptor
- The file type descriptor. May benull
aAssociatedObject
- The object associated to the file type descriptor. Must not benull
.
-
-
Method Details
-
getFileTypeDescriptor
Returns the file type descriptor.- Returns:
- the file type descriptor. Can be
null
.
-
getAssociatedObject
Returns the object associated to the file type descriptor- Returns:
- the object associated to the file type descriptor
-
hashCode
public int hashCode() -
equals
This method will verify whetheraFileTypeDescriptorHolder
is the same instance asthis
, or whether it is anALcyFileTypeDescriptorHolder
with the same associated object. It does not take theALcyFileTypeDescriptor
into account.
-