Uses of Class
squidpony.squidmath.K2V1

Packages that use K2V1 
Package Description
squidpony.squidmath
A very broad package containing random number generators, geometry tools, data structures, and noise functions.
  • Uses of K2V1 in squidpony.squidmath

    Methods in squidpony.squidmath that return K2V1 
    Modifier and Type Method Description
    K2V1<A,​B,​Q> K2V1.alterA​(A past, A future)
    Changes an existing A key, past, to another A key, future, if past exists in this K2V1 and future does not yet exist in this K2V1.
    K2V1<A,​B,​Q> K2V1.alterAAt​(int index, A future)
    Changes the A key at index to another A key, future, if index is valid and future does not yet exist in this K2V1.
    K2V1<A,​B,​Q> K2V1.alterB​(B past, B future)
    Changes an existing B key, past, to another B key, future, if past exists in this K2V1 and future does not yet exist in this K2V1.
    K2V1<A,​B,​Q> K2V1.alterBAt​(int index, B future)
    Changes the B key at index to another B key, future, if index is valid and future does not yet exist in this K2V1.
    K2V1<A,​B,​Q> K2V1.alterQAt​(int index, Q future)
    Changes the Q value at index to another Q value, future, if index is valid.
    K2V1<A,​B,​Q> K2V1.removeA​(A removing)
    Removes a given A key, if removing exists in this K2V1's A keys, and also removes any B key or Q value associated with its point in the ordering.
    K2V1<A,​B,​Q> K2V1.removeAt​(int index)
    Removes a given point in the ordering, if index is at least 0 and less than size().
    K2V1<A,​B,​Q> K2V1.removeB​(B removing)
    Removes a given B key, if removing exists in this K2V1's B keys, and also removes any A key or Q value associated with its point in the ordering.
    K2V1<A,​B,​Q> K2V1.reorder​(int... ordering)
    Reorders this K2V1 using ordering, which have the same length as this K2V1's 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 shuffle(IRNG)), or made in some other way.
    K2V1<A,​B,​Q> K2V1.shuffle​(IRNG rng)
    Generates a random ordering with rng and applies the same ordering to all keys and values this has; they will maintain their current association to other keys and values but their ordering/indices will change.
    Methods in squidpony.squidmath with parameters of type K2V1 
    Modifier and Type Method Description
    boolean K2V1.putAll​(K2V1<A,​B,​Q> other)
    Puts all unique A and B keys in other into this K2V1, respecting other's ordering.
    Constructors in squidpony.squidmath with parameters of type K2V1 
    Constructor Description
    K2V1​(K2V1<A,​B,​Q> other)
    Constructs a K2V1 from another K2V1 with ths same A, B, and Q types.