public class Constraints extends Object
| Constructor and Description |
|---|
Constraints()
Constructor
|
Constraints(Constraints constraints)
Copy Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Collection<Constraint> constraints)
Add constraints
|
void |
add(Constraint constraint)
Add constraint
|
void |
add(Constraints constraints)
Add constraints
|
List<Constraint> |
all()
Get the constraints
|
List<Constraint> |
clear()
Clear the constraints
|
List<Constraint> |
clear(ConstraintType type)
Clear the constraints of the provided type
|
Constraints |
copy()
Copy the constraints
|
List<Constraint> |
get(ConstraintType type)
Get the constraints of the provided type
|
Constraint |
get(int index)
Get the constraint at the index
|
boolean |
has()
Check if has constraints
|
boolean |
has(ConstraintType type)
Check if has constraints of the provided type
|
int |
size()
Get the number of constraints
|
int |
size(ConstraintType type)
Get the number of constraints of the provided type
|
public Constraints()
public Constraints(Constraints constraints)
constraints - constraintspublic void add(Constraint constraint)
constraint - constraintpublic void add(Collection<Constraint> constraints)
constraints - constraintspublic void add(Constraints constraints)
constraints - constraintspublic boolean has()
public boolean has(ConstraintType type)
type - constraint typepublic int size()
public int size(ConstraintType type)
type - constraint typepublic List<Constraint> all()
public Constraint get(int index)
index - constraint indexpublic List<Constraint> get(ConstraintType type)
type - constraint typepublic List<Constraint> clear()
public List<Constraint> clear(ConstraintType type)
type - constraint typepublic Constraints copy()
Copyright © 2021 National Geospatial-Intelligence Agency. All rights reserved.