T
- The class of the object associated to the ALcyFileTypeDescriptor
public abstract class ALcyFileTypeDescriptorHolder<T>
extends java.lang.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.
Modifier | Constructor and Description |
---|---|
protected |
ALcyFileTypeDescriptorHolder(ALcyFileTypeDescriptor aFileTypeDescriptor,
T aAssociatedObject)
Create a new
ALcyFileTypeDescriptorHolder |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.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. |
T |
getAssociatedObject()
Returns the object associated to the file type descriptor
|
ALcyFileTypeDescriptor |
getFileTypeDescriptor()
Returns the file type descriptor.
|
int |
hashCode() |
protected ALcyFileTypeDescriptorHolder(ALcyFileTypeDescriptor aFileTypeDescriptor, T aAssociatedObject)
Create a new ALcyFileTypeDescriptorHolder
aFileTypeDescriptor
- The file type descriptor. May be null
aAssociatedObject
- The object associated to the file type descriptor. Must not be
null
.public ALcyFileTypeDescriptor getFileTypeDescriptor()
null
.public T getAssociatedObject()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object aFileTypeDescriptorHolder)
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.equals
in class java.lang.Object
aFileTypeDescriptorHolder
- The object to verifytrue
when aFileTypeDescriptorHolder
is the same instance as
this
, or whether it is an ALcyFileTypeDescriptorHolder
with
the same associated object.