- All Implemented Interfaces:
Comparable<Tuple>
, Tuple
public final class Tuple0
extends Object
implements Tuple
Singleton implementation to ensure only a single empty tuple exists.
-
-
Method Summary
int
int
set(int element,
int value)
-
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
-