Uses of Class
squidpony.squidmath.IntIntOrderedMap
| Package | Description |
|---|---|
| squidpony |
Utilities that don't fit elsewhere in SquidLib; mostly text manipulation, compression, and helper code.
|
| squidpony.squidmath |
A very broad package containing random number generators, geometry tools, data structures, and noise functions.
|
-
Uses of IntIntOrderedMap in squidpony
Fields in squidpony declared as IntIntOrderedMap Modifier and Type Field Description IntIntOrderedMapMarkovChar. pairsMap of all pairs of chars encountered to the position in the order they were encountered.IntIntOrderedMapMarkovText. pairsMap of all pairs of words encountered to the position in the order they were encountered. -
Uses of IntIntOrderedMap in squidpony.squidmath
Methods in squidpony.squidmath that return IntIntOrderedMap Modifier and Type Method Description IntIntOrderedMapIntIntOrderedMap. clone()Returns a deep copy of this map.static IntIntOrderedMapIntIntOrderedMap. makeMap()Makes an empty IntIntOrderedMap.This method is provided for completeness relative to makeMap() with 2 or more parameters.static IntIntOrderedMapIntIntOrderedMap. makeMap(int k0, int v0, int... rest)Makes an IntIntOrderedMap using the given int keys and values in alternating key-value-key-value order.IntIntOrderedMapIntIntOrderedMap. putPairs(int k0, int v0, int... rest)Given alternating key and value arguments in pairs, puts each key-value pair into this OrderedMap as if by callingput(int, int)repeatedly for each pair.IntIntOrderedMapIntIntOrderedMap. reorder(int... ordering)Given an array or varargs of replacement indices for this OrderedMap's iteration order, reorders this so the first item in the returned version is the same asgetAt(ordering[0])(with some care taken for negative or too-large indices), the second item in the returned version is the same asgetAt(ordering[1]), etc.IntIntOrderedMapIntIntOrderedMap. shuffle(IRNG rng)Randomly alters the iteration order for this OrderedMap using the given IRNG to shuffle.Methods in squidpony.squidmath with parameters of type IntIntOrderedMap Modifier and Type Method Description voidIntIntOrderedMap. putAll(IntIntOrderedMap m)Puts all key-value pairs in the Map m into this OrderedMap.Constructors in squidpony.squidmath with parameters of type IntIntOrderedMap Constructor Description IntIntOrderedMap(IntIntOrderedMap m)Creates a new OrderedMap with 0.75f as load factor copying a given one.IntIntOrderedMap(IntIntOrderedMap m, float f)Creates a new OrderedMap copying a given one.