- replace
Replaces the trait(s) of a given type with a list of traits of the same type.The
list must not be em
- plus
Returns this trait set with a given trait added or overridden. Does not modify
this trait set.
- simplify
- createEmpty
Creates an empty trait set.It has a new cache, which will be shared by any trait
set created from it
- equals
Compares two RelTraitSet objects for equality.
- getTrait
Retrieves a RelTrait of the given type from the set.
- canonize
Converts a trait to canonical form.After canonization, t1.equals(t2) if and only
if t1 == t2.
- contains
Returns whether this trait set contains a given trait.
- getTraits
Retrieves a list of traits of the given type from the set.Only valid for traits
that support multipl
- replaceIfs
- containsIfApplicable
Returns whether this trait set contains the given trait, or whether the trait is
not present because
- comprises
Returns whether this trait set comprises precisely the list of given traits.