You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<divclass="type-signature"><spanclass="modifiers">public class </span><spanclass="element-name type-name-label">Deserializer</span>
77
+
<divclass="type-signature"><spanclass="modifiers">public final class </span><spanclass="element-name type-name-label">Deserializer</span>
78
78
<spanclass="extends-implements">extends <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></span></div>
79
79
<divclass="block">Allows deserializing any type of EnhancedRandom by looking up its tag in a registry.
80
80
The main way of using this is the <ahref="#deserialize(java.lang.String)"><code>deserialize(String)</code></a> (or <ahref="#deserialize(java.lang.String,com.github.tommyettinger.digital.Base)"><code>deserialize(String, Base)</code></a>) method.
81
81
By default, all EnhancedRandom types in this library are registered by default, and can be deserialized.</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a><<ahref="EnhancedRandom.html" title="class in com.github.tommyettinger.random">EnhancedRandom</a>></code></div>
<divclass="block">Returns an unordered List of copies of the EnhancedRandom "prototype" objects this uses during
100
+
deserialization.</div>
101
+
</div>
102
+
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html" title="class or interface in java.util" class="external-link">Set</a><<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>></code></div>
<divclass="member-signature"><spanclass="modifiers">public static</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html" title="class or interface in java.util" class="external-link">Set</a><<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>></span> <spanclass="element-name">copyTags</span>()</div>
219
+
<divclass="block">Creates an unordered Set of all String tags Deserializer knows, and returns it.</div>
220
+
<dlclass="notes">
221
+
<dt>Returns:</dt>
222
+
<dd>a Set of all String tags this knows</dd>
223
+
</dl>
224
+
</section>
225
+
</li>
226
+
<li>
227
+
<sectionclass="detail" id="copyRandoms()">
228
+
<h3>copyRandoms</h3>
229
+
<divclass="member-signature"><spanclass="modifiers">public static</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a><<ahref="EnhancedRandom.html" title="class in com.github.tommyettinger.random">EnhancedRandom</a>></span> <spanclass="element-name">copyRandoms</span>()</div>
230
+
<divclass="block">Returns an unordered List of copies of the EnhancedRandom "prototype" objects this uses during
231
+
deserialization. Each EnhancedRandom copy is seeded with <code>-1L</code> before it is put in the List.</div>
232
+
<dlclass="notes">
233
+
<dt>Returns:</dt>
234
+
<dd>a List of copies of the EnhancedRandom instances this knows</dd>
<dd><code><ahref="ChopRandom.html" title="class in com.github.tommyettinger.random">ChopRandom</a></code>, <code><ahref="DistinctRandom.html" title="class in com.github.tommyettinger.random">DistinctRandom</a></code>, <code><ahref="FourWheelRandom.html" title="class in com.github.tommyettinger.random">FourWheelRandom</a></code>, <code><ahref="LaserRandom.html" title="class in com.github.tommyettinger.random">LaserRandom</a></code>, <code><ahref="MizuchiRandom.html" title="class in com.github.tommyettinger.random">MizuchiRandom</a></code>, <code><ahref="RomuTrioRandom.html" title="class in com.github.tommyettinger.random">RomuTrioRandom</a></code>, <code><ahref="StrangerRandom.html" title="class in com.github.tommyettinger.random">StrangerRandom</a></code>, <code><ahref="TricycleRandom.html" title="class in com.github.tommyettinger.random">TricycleRandom</a></code>, <code><ahref="TrimRandom.html" title="class in com.github.tommyettinger.random">TrimRandom</a></code>, <code><ahref="Xoshiro256StarStarRandom.html" title="class in com.github.tommyettinger.random">Xoshiro256StarStarRandom</a></code></dd>
84
+
<dd><code><ahref="ChopRandom.html" title="class in com.github.tommyettinger.random">ChopRandom</a></code>, <code><ahref="DistinctRandom.html" title="class in com.github.tommyettinger.random">DistinctRandom</a></code>, <code><ahref="FourWheelRandom.html" title="class in com.github.tommyettinger.random">FourWheelRandom</a></code>, <code><ahref="LaserRandom.html" title="class in com.github.tommyettinger.random">LaserRandom</a></code>, <code><ahref="MizuchiRandom.html" title="class in com.github.tommyettinger.random">MizuchiRandom</a></code>, <code><ahref="RomuTrioRandom.html" title="class in com.github.tommyettinger.random">RomuTrioRandom</a></code>, <code><ahref="StrangerRandom.html" title="class in com.github.tommyettinger.random">StrangerRandom</a></code>, <code><ahref="TricycleRandom.html" title="class in com.github.tommyettinger.random">TricycleRandom</a></code>, <code><ahref="TrimRandom.html" title="class in com.github.tommyettinger.random">TrimRandom</a></code>, <code><ahref="Xoshiro128PlusPlusRandom.html" title="class in com.github.tommyettinger.random">Xoshiro128PlusPlusRandom</a></code>, <code><ahref="Xoshiro256StarStarRandom.html" title="class in com.github.tommyettinger.random">Xoshiro256StarStarRandom</a></code></dd>
85
85
</dl>
86
86
<hr>
87
87
<divclass="type-signature"><spanclass="modifiers">public abstract class </span><spanclass="element-name type-name-label">EnhancedRandom</span>
0 commit comments