Class GroupKey
- java.lang.Object
-
- org.apache.maven.tools.plugin.extractor.GroupKey
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
JAVA_GROUP
Java group is handled a bit special: is always first to be scanned.
-
Constructor Summary
Constructors Constructor Description GroupKey(java.lang.String group, int order)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(GroupKey o)
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
equals(java.lang.Object o)
java.lang.String
getGroup()
Returns the group this key belongs to, nevernull
.int
getOrder()
Returns the order within same group of this key.int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
JAVA_GROUP
public static final java.lang.String JAVA_GROUP
Java group is handled a bit special: is always first to be scanned.- See Also:
- Constant Field Values
-
-
Method Detail
-
getGroup
public java.lang.String getGroup()
Returns the group this key belongs to, nevernull
.
-
getOrder
public int getOrder()
Returns the order within same group of this key. Returns int should be used for ordering only.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
compareTo
public int compareTo(GroupKey o)
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 interfacejava.lang.Comparable<GroupKey>
- First,
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-