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 Details

    • firstPart

      Optional<String> 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.
      Overrides:
      toString in class Object
      Returns:
      the name.
    • equals

      boolean equals(Object other)
      If another name is equal to the current name.
      Overrides:
      equals in class Object
      Parameters:
      other - the other name.
      Returns:
      true iff the two objects are equal.