public class PrefixSet extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
FREE |
static int[] |
SIZES
Right part of prime computed with PrefixSetTest.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(long prefix) |
void |
addAll(PrefixSet set) |
boolean |
addUnpacked(int... symbols) |
boolean |
equals(Object o) |
List<int[]> |
follows(int first) |
int |
hashCode() |
double |
hashQuality()
average comparisons for successfull search
|
boolean |
isEmpty() |
Prefix |
iterator() |
double |
load() |
static PrefixSet |
one(int... symbols) |
int |
size() |
String |
toString(StringArrayList symbolTable) |
void |
toString(StringArrayList symbolTable,
StringBuilder result) |
public static final int[] SIZES
public static final long FREE
public PrefixSet()
public PrefixSet(PrefixSet orig)
public static PrefixSet one(int... symbols)
public Prefix iterator()
public double hashQuality()
public double load()
public int size()
public boolean isEmpty()
public boolean addUnpacked(int... symbols)
public boolean add(long prefix)
public void addAll(PrefixSet set)
public String toString(StringArrayList symbolTable)
public void toString(StringArrayList symbolTable, StringBuilder result)
public List<int[]> follows(int first)
Copyright © 1998–2017 1&1. All rights reserved.