MCPcopy Create free account
hub / github.com/boxbeam/RedLib / clone

Method clone

src/redempt/redlib/misc/WeightedRandom.java:198–200  ·  view source on GitHub ↗

Creates a copy of this WeightedRandom @return An identical copy of this WeightedRandom

()

Source from the content-addressed store, hash-verified

196 * @return An identical copy of this WeightedRandom
197 */
198 public WeightedRandom<T> clone() {
199 return new WeightedRandom<T>(new HashMap<>(weights), false);
200 }
201
202 /**
203 * Converts this WeightedRandom to a String which can be deserialized later

Callers 6

getPathMethod · 0.45
createMethod · 0.45
fixStandsMethod · 0.45
moveMethod · 0.45
isSafeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected