Class Alt2<V1,​V2>

  • All Implemented Interfaces:
    Alt

    public class Alt2<V1,​V2>
    extends Object
    implements Alt
    This interface is conceptually just a pair just like Map.Entry However, reusing Map.Entry for storage nodes (schema) is very confusing in debugging, because Entry is especially used on the stores (often Maps).
    Author:
    raven
    • Field Detail

      • v1

        protected V1 v1
      • v2

        protected V2 v2
    • Constructor Detail

      • Alt2

        public Alt2​(V1 v1,
                    V2 v2)
    • Method Detail

      • getV1

        public V1 getV1()
      • getV2

        public V2 getV2()
      • get

        public Object get​(int index)
        Specified by:
        get in interface Alt
        Returns:
        The item with the given index in this Alt instance
      • size

        public int size()
        Specified by:
        size in interface Alt
        Returns:
        The number of items in this Alt instance
      • create

        public static <V1,​V2> Alt2<V1,​V2> create​(V1 v1,
                                                             V2 v2)