Class CoordinateID.Triplet

  • Enclosing class:
    CoordinateID

    public static final class CoordinateID.Triplet
    extends java.lang.Object
    Convenience implementation of a mutable coordinate triplet.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int x
      x-coordinate
      int y
      y-coordinate
      int z
      z-coordinate
    • Constructor Summary

      Constructors 
      Constructor Description
      Triplet​(int x, int y, int z)
      Creates a new triplet.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      CoordinateID toCoordinate()
      Returns a CoordinateID with identical coordinates.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • x

        public int x
        x-coordinate
      • y

        public int y
        y-coordinate
      • z

        public int z
        z-coordinate
    • Constructor Detail

      • Triplet

        public Triplet​(int x,
                       int y,
                       int z)
        Creates a new triplet.
    • Method Detail

      • toCoordinate

        public CoordinateID toCoordinate()
        Returns a CoordinateID with identical coordinates.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object