Class Row<C0,​C1,​C2,​C3,​C4>

  • All Implemented Interfaces:
    Freezable<Row<C0,​C1,​C2,​C3,​C4>>, java.lang.Cloneable, java.lang.Comparable
    Direct Known Subclasses:
    Row.R2, Row.R3, Row.R4, Row.R5

    public class Row<C0,​C1,​C2,​C3,​C4>
    extends java.lang.Object
    implements java.lang.Comparable, java.lang.Cloneable, Freezable<Row<C0,​C1,​C2,​C3,​C4>>
    • Field Detail

      • items

        protected java.lang.Object[] items
      • frozen

        protected volatile boolean frozen
    • Constructor Detail

      • Row

        public Row()
    • Method Detail

      • of

        public static <C0,​C1> Row.R2<C0,​C1> of​(C0 p0,
                                                           C1 p1)
        Convenience Methods
      • of

        public static <C0,​C1,​C2> Row.R3<C0,​C1,​C2> of​(C0 p0,
                                                                             C1 p1,
                                                                             C2 p2)
      • of

        public static <C0,​C1,​C2,​C3> Row.R4<C0,​C1,​C2,​C3> of​(C0 p0,
                                                                                               C1 p1,
                                                                                               C2 p2,
                                                                                               C3 p3)
      • of

        public static <C0,​C1,​C2,​C3,​C4> Row.R5<C0,​C1,​C2,​C3,​C4> of​(C0 p0,
                                                                                                                 C1 p1,
                                                                                                                 C2 p2,
                                                                                                                 C3 p3,
                                                                                                                 C4 p4)
      • get0

        public C0 get0()
      • get1

        public C1 get1()
      • get2

        public C2 get2()
      • get3

        public C3 get3()
      • get4

        public C4 get4()
      • set

        protected Row<C0,​C1,​C2,​C3,​C4> set​(int i,
                                                                  java.lang.Object item)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • compareTo

        public int compareTo​(java.lang.Object other)
        Specified by:
        compareTo in interface java.lang.Comparable<C0>
      • toString

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

        public boolean isFrozen()
        Description copied from interface: Freezable
        Determines whether the object has been frozen or not.
        Specified by:
        isFrozen in interface Freezable<C0>
      • freeze

        public Row<C0,​C1,​C2,​C3,​C4> freeze()
        Description copied from interface: Freezable
        Freezes the object.
        Specified by:
        freeze in interface Freezable<C0>
        Returns:
        the object itself.
      • clone

        public java.lang.Object clone()
        Overrides:
        clone in class java.lang.Object
      • cloneAsThawed

        public Row<C0,​C1,​C2,​C3,​C4> cloneAsThawed()
        Description copied from interface: Freezable
        Provides for the clone operation. Any clone is initially unfrozen.
        Specified by:
        cloneAsThawed in interface Freezable<C0>