- add(K) - Method in class squidpony.squidmath.MultiArrangement
-
- add(K) - Method in class squidpony.squidmath.MultiArrangement.KeyIterator
-
- add(K) - Method in class squidpony.squidmath.MultiArrangement.KeyList
-
Always throws an UnsupportedOperationException
- add(Integer) - Method in class squidpony.squidmath.MultiArrangement.ValueIterator
-
- addAll(K[]) - Method in class squidpony.squidmath.MultiArrangement
-
- addAll(Collection<? extends K>) - Method in class squidpony.squidmath.MultiArrangement
-
- addAll(Collection<? extends K>) - Method in class squidpony.squidmath.MultiArrangement.KeyList
-
Always throws an UnsupportedOperationException.
- addAllIfAbsent(Map<? extends K, ? extends Integer>) - Method in class squidpony.squidmath.MultiArrangement
-
- addAllIfAbsent(K[]) - Method in class squidpony.squidmath.MultiArrangement
-
- addAllIfAbsent(Collection<? extends K>) - Method in class squidpony.squidmath.MultiArrangement
-
- addAt(int, K) - Method in class squidpony.squidmath.MultiArrangement
-
Equivalent to
MultiArrangement.add(Object)
, except that it can place k at any point in the ordering (shifting up later
entries and changing their values to match their new positions in the ordering).
- addIfAbsent(K) - Method in class squidpony.squidmath.MultiArrangement
-
- alter(K, K) - Method in class squidpony.squidmath.MultiArrangement
-
Swaps a key, original, for another key, replacement, while keeping replacement at the same point in the iteration
order as original and keeping it associated with the same value (which also keeps its iteration index).
- alter(int, Object, Object) - Method in class squidpony.squidmath.MultiKey
-
In the keyset specified by which
, changes an existing key, past
, to another key, future
,
if past exists in that keyset and future does not yet exist in that keyset.
- alterAt(int, int, Object) - Method in class squidpony.squidmath.MultiKey
-
In the keyset specified by which
, changes the key at index
to another key, future
, if
index is valid and future does not yet exist in that keyset.
- alterB(S, S) - Method in class squidpony.squidmath.BundleBiMap
-
Changes an existing S key, past
, to another S key, future
, if past exists in this BundleBiMap
and future does not yet exist in this BundleBiMap.
- alterSingleAt(int, S) - Method in class squidpony.squidmath.BundleBiMap
-
Changes the S key at index
to another S key, future
, if index is valid and future does not
yet exist in this K2.
- append(IntVLA, Object) - Method in class squidpony.squidmath.MultiArrangement
-
Different from the typical get method; adds to the non-null IntVLA, container, filling with any positions
associated with k in this MultiArrangement.
- arraySize(int, float) - Static method in class squidpony.squidmath.MultiArrangement
-
Returns the least power of two smaller than or equal to 230 and larger than or equal to Math.ceil( expected / f )
.
- BonusConverters - Class in squidpony.store.text
-
Created by Tommy Ettinger on 4/22/2017.
- BonusConverters() - Constructor for class squidpony.store.text.BonusConverters
-
- BundleBiMap<E,S> - Class in squidpony.squidmath
-
An ordered bidirectional map-like data structure, with "bundles" of unique E (for Element) keys and unique S (for
Single) keys updated together like a map that can be queried by E key bundles, S keys, or int indices, as well as
like a multimap that can be queried by lone E keys.
- BundleBiMap() - Constructor for class squidpony.squidmath.BundleBiMap
-
Constructs an empty BundleBiMap.
- BundleBiMap(int) - Constructor for class squidpony.squidmath.BundleBiMap
-
Constructs a BundleBiMap with the expected number of indices to hold (the number of bundles and number of S items
is always the same, and this will be more efficient if expected is greater than that number).
- BundleBiMap(int, float) - Constructor for class squidpony.squidmath.BundleBiMap
-
Constructs a BundleBiMap with the expected number of indices to hold (the number of bundles and number of S items
is always the same, and this will be more efficient if expected is greater than that number) and the load factor
to use, between 0.1f and 0.8f usually (using load factors higher than 0.8f can cause problems).
- BundleBiMap(BundleBiMap<E, S>) - Constructor for class squidpony.squidmath.BundleBiMap
-
Constructs a BundleBiMap using another BundleBiMap to copy.
- BundleBundleBiMap<E1,E2> - Class in squidpony.squidmath
-
An ordered bidirectional map-like data structure, with "bundles" of unique E1 (Element type 1) keys and unique E2
(Element type 2) keys updated together like a map that can be queried by E1 key bundles, E2 key bundles, or int
indices, as well as like a multimap that can be queried by lone E1 or E2 keys.
- BundleBundleBiMap() - Constructor for class squidpony.squidmath.BundleBundleBiMap
-
Constructs an empty BundleBiMap.
- BundleBundleBiMap(int) - Constructor for class squidpony.squidmath.BundleBundleBiMap
-
Constructs a BundleBiMap with the expected number of indices to hold (the number of bundles and number of E2 items
is always the same, and this will be more efficient if expected is greater than that number).
- BundleBundleBiMap(int, float) - Constructor for class squidpony.squidmath.BundleBundleBiMap
-
Constructs a BundleBiMap with the expected number of indices to hold (the number of bundles and number of E2 items
is always the same, and this will be more efficient if expected is greater than that number) and the load factor
to use, between 0.1f and 0.8f usually (using load factors higher than 0.8f can cause problems).
- BundleBundleBiMap(BundleBundleBiMap<E1, E2>) - Constructor for class squidpony.squidmath.BundleBundleBiMap
-
Constructs a BundleBiMap using another BundleBiMap to copy.
- garbleKey - Variable in class squidpony.store.json.JsonStorage
-
- garbleKey - Variable in class squidpony.store.text.TextStorage
-
- get(IntVLA, Object) - Method in class squidpony.squidmath.MultiArrangement
-
Different from the typical get method; clears the non-null IntVLA, container, and fills it with any positions
associated with k in this MultiArrangement.
- get(int) - Method in class squidpony.squidmath.MultiArrangement.KeyList
- get(String, String, Class<T>) - Method in class squidpony.SquidStorage
-
- get(String, String, Class<T>) - Method in class squidpony.store.json.JsonStorage
-
- get(String, String, StringConvert<?>, Class<T>) - Method in class squidpony.store.text.TextStorage
-
- get(String, String, CharSequence, Class<T>) - Method in class squidpony.store.text.TextStorage
-
- getAllAt(int) - Method in class squidpony.squidmath.MultiKey
-
Given an int index, finds the associated keys at all keysets (using index as a point in the ordering) and returns
them as a newly-allocated Object array.
- getAllAt(int, Object[]) - Method in class squidpony.squidmath.MultiKey
-
Given an int index and an Object array to reuse, finds the associated keys at all keysets (using index as a point
in the ordering) and fills into with those keys, up to keyCount items.
- getArray(K[]) - Method in class squidpony.squidmath.MultiArrangement
-
- getArray(Collection<? extends K>) - Method in class squidpony.squidmath.MultiArrangement
-
- getAt(int) - Method in class squidpony.squidmath.MultiArrangement
-
Gets the value at the given index in the iteration order in constant time (random-access).
- getAt(int, int) - Method in class squidpony.squidmath.MultiKey
-
Given an index of a keyset (which) and an int index, finds the associated key in the keyset specified by which
(using index as a point in the ordering).
- getBundleElements(S) - Method in class squidpony.squidmath.BundleBiMap
-
Given an S key to look up, gets a (newly-allocated) OrderedSet of E element keys corresponding to that S key.
- getBundleElements(E2[]) - Method in class squidpony.squidmath.BundleBundleBiMap
-
Given an E2 key to look up, gets a (newly-allocated) OrderedSet of E1 element keys corresponding to that E2 key.
- getBundleElementsAt(int) - Method in class squidpony.squidmath.BundleBiMap
-
Given an index to look up, gets a (newly-allocated) OrderedSet of E element keys in the bundle at that index.
- getBundleElementsAt(int) - Method in class squidpony.squidmath.BundleBundleBiMap
-
Given an index to look up, gets a (newly-allocated) OrderedSet of E1 element keys in the bundle at that index.
- getBundleVariation(S) - Method in class squidpony.squidmath.BundleBiMap
-
Given an S key to look up, gets a (newly-allocated) int array that is equivalent to the variation part of the
bundle corresponding to single.
- getBundleVariationAt(int) - Method in class squidpony.squidmath.BundleBiMap
-
Given an index to look up, gets a (newly-allocated) int array that is equivalent to the variation part of the
bundle present at that index.
- getBundleVariationAt(int) - Method in class squidpony.squidmath.BundleBundleBiMap
-
Given an index to look up, gets a (newly-allocated) int array that is equivalent to the variation part of the
bundle present at that index.
- getCode(S) - Method in class squidpony.squidmath.BundleBiMap
-
Given an S key to look up, gets a 2D int array representing the key's matching bundle.
- getCodeAt(int) - Method in class squidpony.squidmath.BundleBiMap
-
Given an index to look up, gets a 2D int array representing the bundle at that index.
- getCodeAt(int) - Method in class squidpony.squidmath.BundleBundleBiMap
-
Given an index to look up, gets a 2D int array representing the bundle at that index.
- getElement1BundleVariation(E2[]) - Method in class squidpony.squidmath.BundleBundleBiMap
-
Given an E2 key to look up, gets a (newly-allocated) int array that is equivalent to the variation part of the
bundle corresponding to single.
- getElement1OrderedSet() - Method in class squidpony.squidmath.BundleBundleBiMap
-
To be called sparingly, since this allocates a new OrderedSet instead of reusing one.
- getElement1Set() - Method in class squidpony.squidmath.BundleBundleBiMap
-
Gets and caches the individual E1 keys as a Collection that implements SortedSet (and so also implements Set).
- getElement2(E1[]) - Method in class squidpony.squidmath.BundleBundleBiMap
-
Given a bundle of E1 keys as an array with no variation, gets the matching E2 key for that bundle, or null if there
is none.
- getElement2(E1[], int[]) - Method in class squidpony.squidmath.BundleBundleBiMap
-
Given a bundle of E1 keys as an array with an int array variation, gets the matching E2 key for that bundle, or
null if there is none.
- getElement2(Collection<? extends E1>) - Method in class squidpony.squidmath.BundleBundleBiMap
-
Given a bundle of E1 keys as a Collection with no variation, gets the matching E2 key for that bundle, or
null if there is none.
- getElement2(Collection<? extends E1>, int[]) - Method in class squidpony.squidmath.BundleBundleBiMap
-
Given a bundle of E1 keys as a Collection with an int array variation, gets the matching E2 key for that bundle, or
null if there is none.
- getElement2At(int) - Method in class squidpony.squidmath.BundleBundleBiMap
-
Given an index to look up, gets the E2 key present at that position in the ordering.
- getElement2Coded(int[][]) - Method in class squidpony.squidmath.BundleBundleBiMap
-
Given an E1 bundle as a coded 2D int array, gets the matching E2 bundle, also coded, or null if there is none.
- getElement2OrderedSet() - Method in class squidpony.squidmath.BundleBundleBiMap
-
To be called sparingly, since this allocates a new OrderedSet instead of reusing one.
- getElement2Set() - Method in class squidpony.squidmath.BundleBundleBiMap
-
Gets and caches the E2 single keys as a Collection that implements SortedSet (and so also implements Set).
- getElementOrderedSet() - Method in class squidpony.squidmath.BundleBiMap
-
To be called sparingly, since this allocates a new OrderedSet instead of reusing one.
- getElementSet() - Method in class squidpony.squidmath.BundleBiMap
-
Gets and caches the individual E keys as a Collection that implements SortedSet (and so also implements Set).
- getFrom(int, int, Object) - Method in class squidpony.squidmath.MultiKey
-
Given an index of the keyset to look up a key in (lookingUp), an index of the keyset to get from (getting), and
an Object key to look up (key), finds the Object key in the keyset specified by getting that is associated with
key in the keyset specified by lookingUp.
- getMany(Iterable<? extends K>) - Method in class squidpony.squidmath.MultiArrangement
-
- getManyCoded(E) - Method in class squidpony.squidmath.BundleBiMap
-
Given an E element key that could be used in one or more bundles this uses, gets all bundles in this object that
contain the given element, as coded 2D int arrays.
- getManyCoded(E1) - Method in class squidpony.squidmath.BundleBundleBiMap
-
Given an E1 element key that could be used in one or more bundles this uses, gets all bundles in this object that
contain the given element, as coded 2D int arrays.
- getManyElement2(E1) - Method in class squidpony.squidmath.BundleBundleBiMap
-
Given an E1 element key that could be used in one or more bundles this uses, finds all E2 single keys corresponding
to bundles that contain the given element.
- getManyIndices(E) - Method in class squidpony.squidmath.BundleBiMap
-
Given an E element key that could be used in one or more bundles this uses, gets all indices in the ordering
that contain a bundle with that element.
- getManyIndices(E1) - Method in class squidpony.squidmath.BundleBundleBiMap
-
Given an E1 element key that could be used in one or more bundles this uses, gets all indices in the ordering
that contain a bundle with that element.
- getManySingles(E) - Method in class squidpony.squidmath.BundleBiMap
-
Given an E element key that could be used in one or more bundles this uses, finds all S single keys corresponding
to bundles that contain the given element.
- getOrderedSet(int) - Method in class squidpony.squidmath.MultiKey
-
To be called sparingly, since this allocates a new OrderedSet instead of reusing one.
- getSet(int) - Method in class squidpony.squidmath.MultiKey
-
Gets and caches the keys in the keyset specified by which as a Collection that implements SortedSet (and so also
implements Set).
- getSingle(E[]) - Method in class squidpony.squidmath.BundleBiMap
-
Given a bundle of E keys as an array with no variation, gets the matching S key for that bundle, or null if there
is none.
- getSingle(E[], int[]) - Method in class squidpony.squidmath.BundleBiMap
-
Given a bundle of E keys as an array with an int array variation, gets the matching S key for that bundle, or
null if there is none.
- getSingle(Collection<? extends E>) - Method in class squidpony.squidmath.BundleBiMap
-
Given a bundle of E keys as a Collection with no variation, gets the matching S key for that bundle, or
null if there is none.
- getSingle(Collection<? extends E>, int[]) - Method in class squidpony.squidmath.BundleBiMap
-
Given a bundle of E keys as a Collection with an int array variation, gets the matching S key for that bundle, or
null if there is none.
- getSingleAt(int) - Method in class squidpony.squidmath.BundleBiMap
-
Given an int index, finds the associated S key (using index as a point in the ordering).
- getSingleCoded(int[][]) - Method in class squidpony.squidmath.BundleBiMap
-
Given a bundle as a coded 2D int array, gets the matching S key for that bundle, or null if there is none.
- getSingleOrderedSet() - Method in class squidpony.squidmath.BundleBiMap
-
To be called sparingly, since this allocates a new OrderedSet instead of reusing one.
- getSingleSet() - Method in class squidpony.squidmath.BundleBiMap
-
Gets and caches the S single keys as a Collection that implements SortedSet (and so also implements Set).
- mapConverter - Variable in class squidpony.store.text.TextStorage
-
- mask - Variable in class squidpony.squidmath.MultiArrangement
-
The mask for wrapping a position counter.
- maxFill - Variable in class squidpony.squidmath.MultiArrangement
-
Threshold after which we rehash.
- maxFill(int, float) - Static method in class squidpony.squidmath.MultiArrangement
-
Returns the maximum number of entries that can be filled before rehashing.
- maxFill(long, float) - Static method in class squidpony.squidmath.MultiArrangement
-
Returns the maximum number of entries that can be filled before rehashing.
- MultiArrangement<K> - Class in squidpony.squidmath
-
A bi-directional mapping of non-unique objects to positions in an ordering (which this generates), and vice versa.
- MultiArrangement(int, float) - Constructor for class squidpony.squidmath.MultiArrangement
-
Creates a new MultiArrangement.
- MultiArrangement(int) - Constructor for class squidpony.squidmath.MultiArrangement
-
Creates a new MultiArrangement with 0.5f as load factor.
- MultiArrangement() - Constructor for class squidpony.squidmath.MultiArrangement
-
Creates a new MultiArrangement with initial expected 16 entries and 0.5f as load factor.
- MultiArrangement(MultiArrangement<? extends K>) - Constructor for class squidpony.squidmath.MultiArrangement
-
- MultiArrangement(K[], float) - Constructor for class squidpony.squidmath.MultiArrangement
-
Creates a new MultiArrangement using the elements of an array.
- MultiArrangement(Collection<K>) - Constructor for class squidpony.squidmath.MultiArrangement
-
Creates a new Arrangement using the elements of an array.
- MultiArrangement(Collection<K>, float) - Constructor for class squidpony.squidmath.MultiArrangement
-
Creates a new Arrangement using the given collection of keys.
- MultiArrangement(K[]) - Constructor for class squidpony.squidmath.MultiArrangement
-
Creates a new Arrangement with 0.5f as load factor using the elements of an array.
- MultiArrangement(int, float, CrossHash.IHasher) - Constructor for class squidpony.squidmath.MultiArrangement
-
Creates a new Arrangement.
- MultiArrangement(int, CrossHash.IHasher) - Constructor for class squidpony.squidmath.MultiArrangement
-
Creates a new Arrangement with 0.5f as load factor.
- MultiArrangement(CrossHash.IHasher) - Constructor for class squidpony.squidmath.MultiArrangement
-
Creates a new Arrangement with initial expected 16 entries and 0.5f as load factor.
- MultiArrangement(K[], float, CrossHash.IHasher) - Constructor for class squidpony.squidmath.MultiArrangement
-
Creates a new Arrangement using the elements of two parallel arrays.
- MultiArrangement(K[], CrossHash.IHasher) - Constructor for class squidpony.squidmath.MultiArrangement
-
Creates a new Arrangement with 0.5f as load factor using the elements of two parallel arrays.
- MultiArrangement.KeyIterator - Class in squidpony.squidmath
-
An iterator on keys.
- MultiArrangement.KeyList - Class in squidpony.squidmath
-
- MultiArrangement.ValueCollection - Class in squidpony.squidmath
-
- MultiArrangement.ValueIterator - Class in squidpony.squidmath
-
An iterator on values.
- MultiKey - Class in squidpony.squidmath
-
An ordered multi-directional "map" that keeps 1 or more keysets organized so you can look up one key given a key in
another keyset, and do the same for the indices of keys.
- MultiKey() - Constructor for class squidpony.squidmath.MultiKey
-
Constructs an empty MultiKey.
- MultiKey(int, int) - Constructor for class squidpony.squidmath.MultiKey
-
Constructs a MultiKey with the expected number of indices to hold (the number of items in each keyset is always
the same, and this will be more efficient if expected is greater than that number).
- MultiKey(int, int, float) - Constructor for class squidpony.squidmath.MultiKey
-
Constructs a MultiKey with the expected number of indices to hold (the number of items in each keyset is always
the same, and this will be more efficient if expected is greater than that number) and the load factor to use,
between 0.1f and 0.8f usually (using load factors higher than 0.8f can cause problems).
- MultiKey(Collection<Iterable>) - Constructor for class squidpony.squidmath.MultiKey
-
Constructs a MultiKey from a Collection of Iterables that will be processed in tandem, adding a unique item from
each keyset in keysets if and only if it can also add a unique item from all other keysets, otherwise skipping
that iteration in each Iterable.
- MultiKey(MultiKey) - Constructor for class squidpony.squidmath.MultiKey
-
- MultiKey(Arrangement[]) - Constructor for class squidpony.squidmath.MultiKey
-
- positionOf(Object) - Method in class squidpony.squidmath.MultiArrangement
-
- preferences - Variable in class squidpony.store.json.JsonStorage
-
- preferences - Variable in class squidpony.store.text.TextStorage
-
- preferencesSize() - Method in class squidpony.SquidStorage
-
Gets the approximate size of the currently-stored preferences.
- preferencesSize() - Method in class squidpony.store.json.JsonStorage
-
Gets the approximate size of the currently-stored preferences.
- preferencesSize() - Method in class squidpony.store.text.TextStorage
-
Gets the approximate size of the currently-stored preferences.
- previous() - Method in class squidpony.squidmath.MultiArrangement.KeyIterator
-
- previous() - Method in class squidpony.squidmath.MultiArrangement.ValueIterator
-
- previousInt() - Method in class squidpony.squidmath.MultiArrangement.ValueIterator
-
- put(E[], S) - Method in class squidpony.squidmath.BundleBiMap
-
Adds a bundle of E keys and a S key at the same point in the ordering (the end) to this BundleBiMap.
- put(E[], int[], S) - Method in class squidpony.squidmath.BundleBiMap
-
Adds a bundle of E keys, mixed with an int array of variations, and a S key at the same point in the ordering
(the end) to this BundleBiMap.
- put(Collection<? extends E>, S) - Method in class squidpony.squidmath.BundleBiMap
-
Adds a bundle of E keys and a S key at the same point in the ordering (the end) to this BundleBiMap.
- put(Collection<? extends E>, int[], S) - Method in class squidpony.squidmath.BundleBiMap
-
Adds a bundle of E keys, mixed with an int array of variations, and a S key at the same point in the ordering
(the end) to this BundleBiMap.
- put(E1[], E2[]) - Method in class squidpony.squidmath.BundleBundleBiMap
-
Adds a bundle of E1 keys and a E2 key at the same point in the ordering (the end) to this BundleBiMap.
- put(E1[], int[], E2[], int[]) - Method in class squidpony.squidmath.BundleBundleBiMap
-
Adds a bundle of E1 keys, mixed with an int array of variations, and a E2 key at the same point in the ordering
(the end) to this BundleBiMap.
- put(Collection<? extends E1>, Collection<? extends E2>) - Method in class squidpony.squidmath.BundleBundleBiMap
-
Adds a bundle of E1 keys and a E2 key at the same point in the ordering (the end) to this BundleBiMap.
- put(Collection<? extends E1>, int[], Collection<? extends E2>, int[]) - Method in class squidpony.squidmath.BundleBundleBiMap
-
Adds a bundle of E1 keys, mixed with an int array of variations, and a bundle of E2 keys at the same point in the
ordering (the end) to this BundleBiMap.
- put(Object...) - Method in class squidpony.squidmath.MultiKey
-
Adds a key to each keyset at the same point in the ordering (the end) of this MultiKey.
- put(String, Object) - Method in class squidpony.SquidStorage
-
Prepares to store the Object o
to be retrieved with innerName
in the current group of objects.
- put(String, Object) - Method in class squidpony.store.json.JsonStorage
-
Prepares to store the Object o
to be retrieved with innerName
in the current group of objects.
- put(String, T, StringConvert) - Method in class squidpony.store.text.TextStorage
-
Prepares to store the Object o
to be retrieved with innerName
in the current group of objects.
- putAll(Iterable<? extends Collection<? extends E>>, Iterable<? extends S>) - Method in class squidpony.squidmath.BundleBiMap
-
Puts all unique E and S keys in aKeys
and bKeys
into this K2 at the end.
- putAll(BundleBiMap<? extends E, ? extends S>) - Method in class squidpony.squidmath.BundleBiMap
-
Puts all unique E and S keys in other
into this K2, respecting other's ordering.
- putAll(Iterable<? extends Collection<? extends E1>>, Iterable<? extends Collection<? extends E2>>) - Method in class squidpony.squidmath.BundleBundleBiMap
-
Puts all unique E1 and E2 keys in aKeys
and bKeys
into this K2 at the end.
- putAll(BundleBundleBiMap<? extends E1, ? extends E2>) - Method in class squidpony.squidmath.BundleBundleBiMap
-
Puts all unique E1 and E2 keys in other
into this K2, respecting other's ordering.
- putAll(Collection<Iterable>) - Method in class squidpony.squidmath.MultiKey
-
Goes through all Iterable items in k
and adds their unique items into their corresponding keyset at the
end.
- putAll(MultiKey) - Method in class squidpony.squidmath.MultiKey
-
Puts all unique keys in other
into this MultiKey, respecting other's ordering.
- putAt(int, Object...) - Method in class squidpony.squidmath.MultiKey
-
Adds a key to each keyset at the given index in the ordering of this MultiKey.
- random - Variable in class squidpony.squidmath.JavaRNG
-
- randomElement(IRNG) - Method in class squidpony.squidmath.BundleBiMap
-
Gets a random E from this BundleBiMap's individual elements using the given IRNG.
- randomElement1(IRNG) - Method in class squidpony.squidmath.BundleBundleBiMap
-
Gets a random E1 from this BundleBiMap's individual elements1 using the given IRNG.
- randomElement2(IRNG) - Method in class squidpony.squidmath.BundleBundleBiMap
-
Gets a random E2 from this BundleBiMap using the given IRNG.
- randomKey(IRNG) - Method in class squidpony.squidmath.MultiArrangement
-
Gets a random key from this MultiArrangement in constant time, using the given IRNG to generate a random number.
- randomKey(int, IRNG) - Method in class squidpony.squidmath.MultiKey
-
Gets a random key from the keyset specified by which using the given IRNG.
- randomKey(IRNG) - Method in class squidpony.squidmath.MultiKey
-
Gets a random key from a random keyset in this MultiKey using the given IRNG.
- randomSingle(IRNG) - Method in class squidpony.squidmath.BundleBiMap
-
Gets a random S from this BundleBiMap using the given IRNG.
- rehash(int) - Method in class squidpony.squidmath.MultiArrangement
-
Rehashes the map.
- rem(Object) - Method in class squidpony.squidmath.MultiArrangement
-
- remove() - Method in class squidpony.squidmath.MultiArrangement.KeyIterator
-
- remove(Object) - Method in class squidpony.squidmath.MultiArrangement.KeyList
-
Always throws an UnsupportedOperationException
- remove(Object) - Method in class squidpony.squidmath.MultiArrangement
-
- remove() - Method in class squidpony.squidmath.MultiArrangement.ValueIterator
-
- remove(int, Object) - Method in class squidpony.squidmath.MultiKey
-
Removes a given Object key from the keyset specified by which, if removing
exists in that keyset, and
also removes any keys associated with its point in the ordering.
- remove(String) - Method in class squidpony.SquidStorage
-
- remove(String) - Method in class squidpony.store.json.JsonStorage
-
- remove(String) - Method in class squidpony.store.text.TextStorage
-
- removeAll(Collection<?>) - Method in class squidpony.squidmath.MultiArrangement.KeyList
-
Remove from this collection all elements in the given type-specific collection.
- removeAt(int) - Method in class squidpony.squidmath.MultiArrangement
-
Removes the key and value at the given index in the iteration order in not-exactly constant time (though it still
should be efficient).
- removeAt(int) - Method in class squidpony.squidmath.MultiKey
-
Removes a given point in the ordering, if
index
is at least 0 and less than
MultiKey.size()
.
- removeFirst() - Method in class squidpony.squidmath.MultiArrangement
-
Removes the mapping associated with the first key in iteration order.
- removeInt(Object) - Method in class squidpony.squidmath.MultiArrangement
-
- removeLast() - Method in class squidpony.squidmath.MultiArrangement
-
Removes the mapping associated with the last key in iteration order.
- reorder(int...) - Method in class squidpony.squidmath.BundleBiMap
-
Reorders this BundleBiMap using
ordering
, which has the same length as this object's
BundleBiMap.size()
and can be generated with
ArrayTools.range(int)
(which, if applied, would produce no
change to the current ordering),
IRNG.randomOrdering(int)
(which gives a random ordering, and if
applied immediately would be the same as calling
BundleBiMap.shuffle(IRNG)
), or made in some other way.
- reorder(int...) - Method in class squidpony.squidmath.BundleBundleBiMap
-
Reorders this BundleBiMap using
ordering
, which has the same length as this object's
BundleBundleBiMap.size()
and can be generated with
ArrayTools.range(int)
(which, if applied, would produce no
change to the current ordering),
IRNG.randomOrdering(int)
(which gives a random ordering, and if
applied immediately would be the same as calling
BundleBundleBiMap.shuffle(IRNG)
), or made in some other way.
- reorder(int...) - Method in class squidpony.squidmath.MultiArrangement
-
Given an array or varargs of replacement indices for this MultiArrangement's iteration order, reorders this so the
first item in the returned version is the same as getAt(ordering[0])
(with some care taken for negative
or too-large indices), the second item in the returned version is the same as getAt(ordering[1])
, etc.
- reorder(int...) - Method in class squidpony.squidmath.MultiKey
-
Reorders this MultiKey using
ordering
, which have the same length as this MultiKey's
MultiKey.size()
and can be generated with
ArrayTools.range(int)
(which, if applied, would produce no
change to the current ordering),
IRNG.randomOrdering(int)
(which gives a random ordering, and if
applied immediately would be the same as calling
MultiKey.shuffle(IRNG)
), or made in some other way.
- retainAll(Collection<?>) - Method in class squidpony.squidmath.MultiArrangement.KeyList
-
Retains in this collection only elements from the given type-specific collection.
- retainAll(Collection<?>) - Method in class squidpony.squidmath.MultiArrangement
-
Retains in this collection only elements from the given collection.
- set(K) - Method in class squidpony.squidmath.MultiArrangement.KeyIterator
-
- set(Integer) - Method in class squidpony.squidmath.MultiArrangement.ValueIterator
-
- shiftKeys(int) - Method in class squidpony.squidmath.MultiArrangement
-
Shifts left entries with the specified hash code, starting at the
specified position, and empties the resulting free entry.
- shiftKeysValues(int) - Method in class squidpony.squidmath.MultiArrangement
-
Shifts left entries with the specified hash code, starting at the
specified position, and empties the resulting free entry.
- show() - Method in class squidpony.SquidStorage
-
- show() - Method in class squidpony.store.json.JsonStorage
-
- show() - Method in class squidpony.store.text.TextStorage
-
- shuffle(IRNG) - Method in class squidpony.squidmath.BundleBiMap
-
Generates a random ordering with rng and applies the same ordering to all kinds of keys this has; they will
maintain their current association to other keys but their ordering/indices will change.
- shuffle(IRNG) - Method in class squidpony.squidmath.BundleBundleBiMap
-
Generates a random ordering with rng and applies the same ordering to all kinds of keys this has; they will
maintain their current association to other keys but their ordering/indices will change.
- shuffle(IRNG) - Method in class squidpony.squidmath.MultiArrangement
-
Randomly alters the iteration order for this MultiArrangement using the given IRNG to shuffle.
- shuffle(IRNG) - Method in class squidpony.squidmath.MultiKey
-
Generates a random ordering with rng and applies the same ordering to all kinds of keys this has; they will
maintain their current association to other keys but their ordering/indices will change.
- singleAt(int) - Method in class squidpony.squidmath.BundleBiMap
-
Given an index to look up, gets the S key present at that position in the ordering.
- size() - Method in class squidpony.squidmath.BundleBiMap
-
Gets the total number of bundle-to-single pairs in this BundleBiMap.
- size() - Method in class squidpony.squidmath.BundleBundleBiMap
-
Gets the total number of bundle-to-single pairs in this BundleBiMap.
- size() - Method in class squidpony.squidmath.MultiArrangement.KeyList
-
- size - Variable in class squidpony.squidmath.MultiArrangement
-
Number of entries in the set (including the key zero, if present).
- size() - Method in class squidpony.squidmath.MultiArrangement
-
- size() - Method in class squidpony.squidmath.MultiArrangement.ValueCollection
-
- size() - Method in class squidpony.squidmath.MultiKey
-
- squidpony - package squidpony
-
The default conversion, compression, and storage classes are here; they delegate to the classes in squidpony.store.json
.
- squidpony.squidmath - package squidpony.squidmath
-
Rarely-used data structures removed from squidlib-util and put in squidlib-extra in case they can be useful.
- squidpony.store.json - package squidpony.store.json
-
Conversion, compression,and storage (to libGDX Preferences) using JSON as the stored type.
- squidpony.store.text - package squidpony.store.text
-
Conversion, compression,and storage (to libGDX Preferences) using an experimental custom format as the stored type.
- SquidStorage - Class in squidpony
-
Helps games store information in libGDX's Preferences class as Strings, then get it back out.
- SquidStorage() - Constructor for class squidpony.SquidStorage
-
Please don't use this constructor if possible; it simply calls
SquidStorage(String)
with the constant
String "nameless".
- SquidStorage(String) - Constructor for class squidpony.SquidStorage
-
Creates a SquidStorage with the given fileName to save using Preferences from libGDX.
- SquidStorage(String, String) - Constructor for class squidpony.SquidStorage
-
Creates a SquidStorage with the given fileName to save using Preferences from libGDX.
- SquidStorage(String, long[]) - Constructor for class squidpony.SquidStorage
-
Creates a SquidStorage with the given fileName to save using Preferences from libGDX.
- storageName - Variable in class squidpony.store.json.JsonStorage
-
- storageName - Variable in class squidpony.store.text.TextStorage
-
- store(String) - Method in class squidpony.SquidStorage
-
Actually stores all objects that had previously been prepared with
SquidStorage.put(String, Object)
, with
outerName
used as a key to retrieve any object in the current group.
- store(String) - Method in class squidpony.store.json.JsonStorage
-
Actually stores all objects that had previously been prepared with
JsonStorage.put(String, Object)
, with
outerName
used as a key to retrieve any object in the current group.
- store(String) - Method in class squidpony.store.text.TextStorage
-
- StringStringMap - Class in squidpony
-
Created by Tommy Ettinger on 1/2/2017.
- StringStringMap() - Constructor for class squidpony.StringStringMap
-
- StringStringMap(int, float) - Constructor for class squidpony.StringStringMap
-
- StringStringMap(Collection<String>, Collection<String>, float) - Constructor for class squidpony.StringStringMap
-
- subMap(K, K) - Method in class squidpony.squidmath.MultiArrangement
-
- swap(K, K) - Method in class squidpony.squidmath.MultiArrangement
-
Swaps the positions in the ordering for the given items, if they are both present.
- swapIndices(int, int) - Method in class squidpony.squidmath.MultiArrangement
-
Swaps the given indices in the ordering, if they are both ints between 0 and size.