ValueConstraint
ConstraintsImpl
public interface Constraints extends ValueConstraint
Constraints
interface describes a collection of SNMP value
range constraints.Modifier and Type | Method | Description |
---|---|---|
void |
add(Constraint constraint) |
Adds a range constraint to the constraints collection.
|
Constraint[] |
getConstraints() |
Gets an array with the constraints in this collection ordered by insertion
time.
|
boolean |
isValidSize(long size) |
Interpretes the value range constraints contained in this collection as
size restrictions for OCTET STRING values and checks whether the given
size matches these criteria.
|
void |
remove(Constraint constraint) |
Removes a constraint.
|
validate
void add(Constraint constraint)
constraint
- a SNMP integer/long value range constraint.void remove(Constraint constraint)
constraint
- a SNMP integer/long value range constraint.Constraint[] getConstraints()
Constraint
instances.boolean isValidSize(long size)
size
- a long value representing an OCTET STRING size.true
if the size is valid.Copyright © 2018 SNMP4J.org. All rights reserved.