Class AbstractItemDescriptor<T>
java.lang.Object
org.eclipse.emf.compare.rcp.internal.extension.impl.AbstractItemDescriptor<T>
- Type Parameters:
T- item type
- All Implemented Interfaces:
Comparable<IItemDescriptor<T>>,IItemDescriptor<T>
- Direct Known Subclasses:
DifferenceGroupDescriptorWrapper,LazyItemDescriptor,WrapperItemDescriptor
Abstract class for an
IItemDescriptor.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractItemDescriptor(String label, String description, int rank, String id) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionintThe description of the item.getID()Get a unique key identifying this item.static <T> com.google.common.base.Function<IItemDescriptor<T>, T> get aFunctionto transform a descriptor into a item.getLabel()The label of the item.intgetRank()Rank of the item.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.emf.compare.rcp.internal.extension.IItemDescriptor
getItem
-
Field Details
-
EMPTY_STRING
EMPTY_STRING.- See Also:
-
-
Constructor Details
-
AbstractItemDescriptor
Constructor.- Parameters:
label-labeldescription-descriptionrank-rankid-id
-
-
Method Details
-
getLabel
The label of the item.- Specified by:
getLabelin interfaceIItemDescriptor<T>- Returns:
- label of the item
-
getDescription
The description of the item.- Specified by:
getDescriptionin interfaceIItemDescriptor<T>- Returns:
- description of the item
-
getRank
public int getRank()Rank of the item.- Specified by:
getRankin interfaceIItemDescriptor<T>- Returns:
- rank
-
getID
Get a unique key identifying this item.- Specified by:
getIDin interfaceIItemDescriptor<T>- Returns:
- a key
-
compareTo
- Specified by:
compareToin interfaceComparable<T>
-
getItemFunction
get aFunctionto transform a descriptor into a item.- Type Parameters:
T- A item type- Returns:
- A item
-
toString
-