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
Modifier and TypeFieldDescriptionstatic final String
Java group is handled a bit special: is always first to be scanned. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Compares by group then by order, with special case ofJAVA_GROUP
group: First,group
is considered, if equals toJAVA_GROUP
, is always first, other groups are in natural order (string) within same named groups, order is defined byorder
boolean
getGroup()
Returns the group this key belongs to, nevernull
.int
getOrder()
Returns the order within same group of this key.int
hashCode()
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_GROUP
group:- First,
group
is 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:
compareTo
in interfaceComparable<GroupKey>
- First,
-
toString
-