Interface MultiName
- All Superinterfaces:
Comparable<MultiName>,Iterable<String>
- All Known Implementing Classes:
CombinedName,SimpleName
public interface MultiName extends Iterable<String>, Comparable<MultiName>
A name that that uniquely identifies an entity, and is composed of two parts.
The first part is also a grouping key for aggregation.
Together both the first and second parts uniquely identify an entity.
- Author:
- Owen Feehan
-
Method Summary
Modifier and Type Method Description booleanequals(Object other)If another name is equal to the current name.Optional<String>firstPart()The first part, and grouping key.StringsecondPart()The second part of the name.StringtoString()The full name, including both directory and file part, as a string.
-
Method Details
-
firstPart
The first part, and grouping key.- Returns:
- the name of part, if it exists.
-
secondPart
String secondPart()The second part of the name.- Returns:
- the name of the part.
-
toString
String toString()The full name, including both directory and file part, as a string. -
equals
If another name is equal to the current name.
-