APIdia Launch Partner
Top Description Fields Constructors Methods
java.util.regex

pack-priv Class IntHashSet

extends Object
Class Inheritance
Imports
java.util.Arrays

A lightweight hashset implementation for positive 'int'. Not safe for concurrent access.

Field Summary

Modifier and TypeField and Description
private int[]
private int[]
private int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
add(int i)

public void
public boolean
contains(int i)

private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

entriesback to summary
private int[] entries
hashesback to summary
private int[] hashes
posback to summary
private int pos

Constructor Detail

IntHashSetback to summary
public IntHashSet()

Method Detail

addback to summary
public void add(int i)
clearback to summary
public void clear()
containsback to summary
public boolean contains(int i)
expandback to summary
private void expand()