Class GroupKey
- java.lang.Object
-
- org.apache.maven.tools.plugin.extractor.GroupKey
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJAVA_GROUPJava 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 intcompareTo(GroupKey o)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 byorderbooleanequals(java.lang.Object o)java.lang.StringgetGroup()Returns the group this key belongs to, nevernull.intgetOrder()Returns the order within same group of this key.inthashCode()java.lang.StringtoString()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(GroupKey o)
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 interfacejava.lang.Comparable<GroupKey>
- First,
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-