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, wait
Methods 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:MultiName
If another name is equal to the current name. -
firstPart
Description copied from interface:MultiName
The first part, and grouping key. -
iterator
-
secondPart
Description copied from interface:MultiName
The second part of the name.- Specified by:
secondPart
in interfaceMultiName
- Returns:
- the name of the part.
-
toString
Description copied from interface:MultiName
The full name, including both directory and file part, as a string. -
compareTo
- Specified by:
compareTo
in interfaceComparable<MultiName>
-