Module life.expert

Class Piece

  • All Implemented Interfaces:
    java.lang.Comparable<Unit>, Unit

    public class Piece
    extends java.lang.Object
    implements Unit, java.lang.Comparable<Unit>
    The type Piece.
    • Constructor Summary

      Constructors 
      Constructor Description
      Piece()  
    • Method Summary

      Modifier and Type Method Description
      int compareTo​(Unit o)  
      static Piece of​(@NonNull java.lang.String code)
      Create piece instance with given unit code.
      • Methods inherited from class java.lang.Object

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

      • DEFAULT_CONTEXT

        public static final PieceContext DEFAULT_CONTEXT
        The constant DEFAULT_CONTEXT.
    • Constructor Detail

      • Piece

        public Piece()
    • Method Detail

      • of

        public static final Piece of​(@NonNull
                                     @NonNull java.lang.String code)
        Create piece instance with given unit code.
        Parameters:
        code - the unit code
        Returns:
        the piece
      • compareTo

        public int compareTo​(Unit o)
        Specified by:
        compareTo in interface java.lang.Comparable<Unit>