classpublicPriority 3
HObjectOpenHashSet
com.hypixel.hytale.common.fastutil.HObjectOpenHashSet
extends ObjectOpenHashSet
2
Methods
2
Public Methods
0
Fields
1
Constructors
Constructors
public
HObjectOpenHashSet()Methods
Public Methods (2)
public
K first()@Nullable
public
void pushInto(Collection<K> c)Inheritance
Parent
Current
Interface
Child
Use mouse wheel to zoom, drag to pan. Click nodes to navigate.
Source Code
package com.hypixel.hytale.common.fastutil;
import it.unimi.dsi.fastutil.objects.ObjectOpenHashSet;
import java.util.Collection;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
public class HObjectOpenHashSet<K> extends ObjectOpenHashSet<K> {
public HObjectOpenHashSet() {
}
@Nullable
public K first() {
if (this.containsNull) {
return (K)this.key[this.n];
} else {
K[] key = (K[])this.key;
int pos = this.n;
while (pos-- != 0) {
if (key[pos] != null) {
return key[pos];
}
}
return null;
}
}
public void pushInto(@Nonnull Collection<K> c) {
if (this.containsNull) {
c.add((K)this.key[this.n]);
}
K[] key = (K[])this.key;
int pos = this.n;
while (pos-- != 0) {
if (key[pos] != null) {
c.add(key[pos]);
}
}
}
}