Class Tuple0

java.lang.Object
tools.refinery.store.tuple.Tuple0
All Implemented Interfaces:
Comparable<Tuple>, Tuple

public final class Tuple0 extends Object implements Tuple
Singleton implementation to ensure only a single empty tuple exists.
  • Field Details

    • INSTANCE

      public static final Tuple0 INSTANCE
  • Method Details

    • getSize

      public int getSize()
      Specified by:
      getSize in interface Tuple
    • get

      public int get(int element)
      Specified by:
      get in interface Tuple
    • set

      public Tuple set(int element, int value)
      Specified by:
      set in interface Tuple
    • toString

      public String toString()
      Overrides:
      toString in class Object