Class GroupKey
java.lang.Object
org.apache.maven.tools.plugin.extractor.GroupKey
- All Implemented Interfaces:
Comparable<GroupKey>
Group key: defines "grouping" for descriptor (based on source of extraction) and rank within
group.
- Since:
- TBD
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringJava group is handled a bit special: is always first to be scanned. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintCompares by group then by order, with special case ofJAVA_GROUPgroup: First,groupis considered, if equals toJAVA_GROUP, is always first, other groups are in natural order (string) within same named groups, order is defined byorderbooleangetGroup()Returns the group this key belongs to, nevernull.intgetOrder()Returns the order within same group of this key.inthashCode()toString()
-
Field Details
-
JAVA_GROUP
Java group is handled a bit special: is always first to be scanned.- See Also:
-
-
Constructor Details
-
GroupKey
-
-
Method Details
-
getGroup
Returns the group this key belongs to, nevernull. -
getOrder
Returns the order within same group of this key. Returns int should be used for ordering only. -
equals
-
hashCode
-
compareTo
Compares by group then by order, with special case ofJAVA_GROUPgroup:- First,
groupis considered, if equals toJAVA_GROUP, is always first, other groups are in natural order (string) - within same named groups, order is defined by
order
- Specified by:
compareToin interfaceComparable<GroupKey>
- First,
-
toString
-