Class CombinedName
Object
CombinedName
- All Implemented Interfaces:
Comparable<MultiName>,Iterable<String>,MultiName
A name which is unique when a primaryName is combined with a secondaryName
In some cases (e.g. when grouping) the primaryName has relevance.
- Author:
- Owen
-
Constructor Summary
ConstructorsConstructorDescriptionCombinedName(String key, String remainder) Creates with explicit strings for both parts. -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
CombinedName
Creates with explicit strings for both parts.- Parameters:
key- first-part (and key used for aggregating).remainder- the second-part (all the names not used in aggregating joined together).
-
-
Method Details
-
hashCode
public int hashCode() -
equals
Description copied from interface:MultiNameIf another name is equal to the current name. -
firstPart
Description copied from interface:MultiNameThe first part, and grouping key. -
iterator
-
secondPart
Description copied from interface:MultiNameThe second part of the name.- Specified by:
secondPartin interfaceMultiName- Returns:
- the name of the part.
-
toString
Description copied from interface:MultiNameThe full name, including both directory and file part, as a string. -
compareTo
- Specified by:
compareToin interfaceComparable<MultiName>
-