Uses of Class
squidpony.squidmath.MultiArrangement
| Package | Description |
|---|---|
| squidpony.squidmath |
Rarely-used data structures removed from squidlib-util and put in squidlib-extra in case they can be useful.
|
-
Uses of MultiArrangement in squidpony.squidmath
Methods in squidpony.squidmath that return MultiArrangement Modifier and Type Method Description MultiArrangement<K>MultiArrangement. clone()Returns a deep copy of this map.MultiArrangement<K>MultiArrangement. reorder(int... ordering)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 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.MultiArrangement<K>MultiArrangement. shuffle(IRNG rng)Randomly alters the iteration order for this MultiArrangement using the given IRNG to shuffle.MultiArrangement<K>MultiArrangement. take(int amount)Produces a copy of this MultiArrangement, but only using up to the given amount of items to take.Constructors in squidpony.squidmath with parameters of type MultiArrangement Constructor Description MultiArrangement(MultiArrangement<? extends K> a)