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.
|
Modifier and Type | Field and Description |
---|---|
IntIntOrderedMap |
MarkovChar.pairs
Map of all pairs of chars encountered to the position in the order they were encountered.
|
IntIntOrderedMap |
MarkovText.pairs
Map of all pairs of words encountered to the position in the order they were encountered.
|
Modifier and Type | Method and Description |
---|---|
IntIntOrderedMap |
IntIntOrderedMap.clone()
Returns a deep copy of this map.
|
static IntIntOrderedMap |
IntIntOrderedMap.makeMap()
Makes an empty IntIntOrderedMap.This method is provided for completeness relative to makeMap() with 2 or more
parameters.
|
static IntIntOrderedMap |
IntIntOrderedMap.makeMap(int k0,
int v0,
int... rest)
Makes an IntIntOrderedMap using the given int keys and values in alternating key-value-key-value order.
|
IntIntOrderedMap |
IntIntOrderedMap.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
calling
put(int, int) repeatedly for each pair. |
IntIntOrderedMap |
IntIntOrderedMap.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 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. |
IntIntOrderedMap |
IntIntOrderedMap.shuffle(IRNG rng)
Randomly alters the iteration order for this OrderedMap using the given IRNG to shuffle.
|
Modifier and Type | Method and Description |
---|---|
void |
IntIntOrderedMap.putAll(IntIntOrderedMap m)
Puts all key-value pairs in the Map m into this OrderedMap.
|
Constructor and 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.
|
Copyright © Eben Howard 2012–2022. All rights reserved.