Serialized Form
-
Package org.cicirello.permutations
-
Exception Class org.cicirello.permutations.IllegalPermutationStateException
class IllegalPermutationStateException extends RuntimeException implements Serializable -
Class org.cicirello.permutations.Permutation
class Permutation extends Object implements Serializable- serialVersionUID:
- 3L
-
Serialized Fields
-
hashCode
int hashCode
Cache the hashCode the first time hashCode() is called to avoid cost of recomputing in applications that rely on HashSets or HashMaps of Permutations, etc with heavy use of the hashCode. -
hashCodeIsCached
boolean hashCodeIsCached
Flag for validating/invalidating cache of hashCode. All methods that change state of Permutation must invalidate the cache. -
permutation
int[] permutation
Raw permutation, which should consist of a permutation of the integers in [0, permutation.length).
-
-