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
-
Constructor Summary
ConstructorDescriptionAbstractItemDescriptor
(String label, String description, int rank, String id) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionint
The description of the item.getID()
Get a unique key identifying this item.static <T> com.google.common.base.Function<IItemDescriptor<T>,
T> get aFunction
to transform a descriptor into a item.getLabel()
The label of the item.int
getRank()
Rank of the item.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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
-label
description
-description
rank
-rank
id
-id
-
-
Method Details
-
getLabel
The label of the item.- Specified by:
getLabel
in interfaceIItemDescriptor<T>
- Returns:
- label of the item
-
getDescription
The description of the item.- Specified by:
getDescription
in interfaceIItemDescriptor<T>
- Returns:
- description of the item
-
getRank
public int getRank()Rank of the item.- Specified by:
getRank
in interfaceIItemDescriptor<T>
- Returns:
- rank
-
getID
Get a unique key identifying this item.- Specified by:
getID
in interfaceIItemDescriptor<T>
- Returns:
- a key
-
compareTo
- Specified by:
compareTo
in interfaceComparable<T>
-
getItemFunction
get aFunction
to transform a descriptor into a item.- Type Parameters:
T
- A item type- Returns:
- A item
-
toString
-