public class Tuple extends Object
input variable bindings
.Constructor and Description |
---|
Tuple()
Creates a new Tuple object.
|
Tuple(Collection<VarBindingDef> bindings)
Creates a new Tuple object.
|
Tuple(Tuple other)
Creates a new Tuple object.
|
Tuple(VarBindingDef... bindings)
Creates a new Tuple object.
|
Modifier and Type | Method and Description |
---|---|
Tuple |
add(VarBindingDef binding)
Adds a binding to this tuple.
|
Tuple |
addAll(Tuple tuple)
Adds all bindings from the given tuple.
|
boolean |
contains(VarBindingDef binding)
Returns true if this tuple contains the given binding.
|
boolean |
equals(Object object) |
VarValueDef |
getBinding(VarDef var)
Returns the value bound by this tuple for the given variable.
|
Iterator<VarBindingDef> |
getBindings()
Returns the variable bindings for this tuple.
|
PropertySet |
getProperties()
Returns the properties of the variable bindings for this tuple.
|
int |
hashCode() |
boolean |
isCompatible()
Returns true if this tuple contains compatible variable bindings.
|
boolean |
isOnce()
Returns if this tuple should be used in at most one test case.
|
static Tuple |
of(Collection<VarBindingDef> tupleBindings)
Returns null if all of the given bindings cannot be included in compatible Tuple.
|
static Tuple |
of(VarBindingDef... tupleBindings)
Returns null if all of the given bindings cannot be included in compatible Tuple.
|
Tuple |
remove(VarDef var)
Removes a binding from this tuple.
|
void |
setBindings(Collection<VarBindingDef> bindings)
Changes the variable bindings for this tuple.
|
void |
setOnce(boolean once)
Changes if this tuple should be used in at most one test case.
|
int |
size()
Returns the number of variable bindings in this tuple.
|
String |
toString() |
public Tuple()
public Tuple(Tuple other)
public Tuple(VarBindingDef... bindings)
public Tuple(Collection<VarBindingDef> bindings)
public static Tuple of(VarBindingDef... tupleBindings)
public static Tuple of(Collection<VarBindingDef> tupleBindings)
public void setBindings(Collection<VarBindingDef> bindings)
public Iterator<VarBindingDef> getBindings()
public boolean contains(VarBindingDef binding)
public VarValueDef getBinding(VarDef var)
public int size()
public PropertySet getProperties()
public Tuple add(VarBindingDef binding)
public void setOnce(boolean once)
public boolean isOnce()
public boolean isCompatible()
Copyright © 2024 The Cornutum Project. All rights reserved.