Package org.javimmutable.collections
Interface InvariantCheckable
- All Known Subinterfaces:
IArray<T>,IDeque<T>,IList<T>,IListMap<K,,V> IMap<K,,V> IMultiset<T>,ISet<T>,ISetMap<K,V>
- All Known Implementing Classes:
AbstractMap,AbstractMultiset,AbstractSet,AbstractSetUsingMap,ArrayDeque,ArrayDeque.Builder,EmptyHashMap,EmptyHashSet,HashListMap,HashMap,HashMultiset,HashSet,HashSetMap,OrderedListMap,OrderedMap,OrderedMultiset,OrderedSet,OrderedSetMap,TemplateSetMap,TreeList,TreeListMap,TreeMap,TreeMultiset,TreeSet,TreeSetMap,TrieArray
public interface InvariantCheckable
Implemented by all classes for testing purposes. Base class checks its
invariants and throws an exception if any of the checks fail.
-
Method Summary
Modifier and TypeMethodDescriptionvoidChecks invariants of implementing class.
-
Method Details
-
checkInvariants
void checkInvariants()Checks invariants of implementing class.
-