no.priv.garshol.duke
Class Bucket

java.lang.Object
  extended by no.priv.garshol.duke.Bucket
All Implemented Interfaces:
Comparable<Bucket>

public class Bucket
extends Object
implements Comparable<Bucket>


Field Summary
 int nextfree
           
 long[] records
           
 
Constructor Summary
Bucket()
           
 
Method Summary
 void add(long id)
           
 int compareTo(Bucket other)
           
 boolean contains(long record)
           
 double getScore()
           
 void sort()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nextfree

public int nextfree

records

public long[] records
Constructor Detail

Bucket

public Bucket()
Method Detail

add

public void add(long id)

compareTo

public int compareTo(Bucket other)
Specified by:
compareTo in interface Comparable<Bucket>

sort

public void sort()

getScore

public double getScore()

contains

public boolean contains(long record)


Copyright © 2013. All Rights Reserved.