A
- the type of the attributespublic class AttributeChecker<A> extends Object
Constructor and Description |
---|
AttributeChecker(Set<A> specimen,
Set<A> required,
Set<A> optional)
Constructs a new attribute checker.
|
Modifier and Type | Method and Description |
---|---|
Set<A> |
getMissing()
Gets
missing . |
Set<A> |
getRedundant()
Gets
redundant . |
boolean |
isConsistent()
Returns if the specimen has neither missing nor redundant attributes.
|
boolean |
isContaminated()
Returns if the specimen has attributes that are neither required nor
optional.
|
boolean |
isDisturbed()
Returns if the specimen lacks of a required attribute.
|
public AttributeChecker(Set<A> specimen, Set<A> required, Set<A> optional)
null
values are allowed and are equivalent to empty sets.specimen
- set of attributes under testrequired
- set of required attributesoptional
- set of optional attributespublic boolean isConsistent()
public boolean isDisturbed()
public boolean isContaminated()
public Set<A> getMissing()
missing
.Copyright © 2014–2016. All rights reserved.