Class EAV.AttributeAndType
- java.lang.Object
-
- dk.netarkivet.harvester.datamodel.eav.EAV.AttributeAndType
-
- All Implemented Interfaces:
java.lang.Comparable<EAV.AttributeAndType>
- Enclosing class:
- EAV
public static class EAV.AttributeAndType extends java.lang.Object implements java.lang.Comparable<EAV.AttributeAndType>
Handy class to pair an attribute and its type.
-
-
Field Summary
Fields Modifier and Type Field Description com.antiaction.raptor.dao.AttributeBase
attribute
com.antiaction.raptor.dao.AttributeTypeBase
attributeType
-
Constructor Summary
Constructors Constructor Description AttributeAndType(com.antiaction.raptor.dao.AttributeTypeBase attributeType, com.antiaction.raptor.dao.AttributeBase attribute)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(EAV.AttributeAndType o)
Comparator allows a list to be sorted so attributes appear in a reproducible order.
-
-
-
Field Detail
-
attributeType
public com.antiaction.raptor.dao.AttributeTypeBase attributeType
-
attribute
public com.antiaction.raptor.dao.AttributeBase attribute
-
-
Constructor Detail
-
AttributeAndType
public AttributeAndType(com.antiaction.raptor.dao.AttributeTypeBase attributeType, com.antiaction.raptor.dao.AttributeBase attribute)
-
-
Method Detail
-
compareTo
public int compareTo(EAV.AttributeAndType o)
Comparator allows a list to be sorted so attributes appear in a reproducible order.- Specified by:
compareTo
in interfacejava.lang.Comparable<EAV.AttributeAndType>
- Parameters:
o
-- Returns:
-
-