Class SimpleName
Object
org.anchoranalysis.feature.io.name.SimpleName
- All Implemented Interfaces:
Comparable<MultiName>,Iterable<String>,MultiName
public class SimpleName extends Object implements MultiName
A name with only one part, and is always unique.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description SimpleName(String name) -
Method Summary
Modifier and Type Method Description protected booleancanEqual(Object other)intcompareTo(MultiName other)booleanequals(Object o)If another name is equal to the current name.Optional<String>firstPart()The first part, and grouping key.inthashCode()Iterator<String>iterator()StringsecondPart()The second part of the name.StringtoString()The full name, including both directory and file part, as a string.
-
Constructor Details
-
Method Details
-
iterator
-
firstPart
Description copied from interface:MultiNameThe first part, and grouping key. -
secondPart
Description copied from interface:MultiNameThe second part of the name.- Specified by:
secondPartin interfaceMultiName- Returns:
- the name of the part.
-
compareTo
- Specified by:
compareToin interfaceComparable<MultiName>
-
toString
Description copied from interface:MultiNameThe full name, including both directory and file part, as a string. -
equals
Description copied from interface:MultiNameIf another name is equal to the current name. -
canEqual
-
hashCode
public int hashCode()
-