net.sourceforge.jiu.color.data

Class Histogram3DNode


(package private) final class Histogram3DNode
extends java.lang.Object

Internal data class for the on demand histogram. Stores one triplet of int values plus an int counter. Implements java.lang.Object.hashCode() and java.lang.Object.equals(java.lang.Object) to be used with a hash table.
Author:
Marco Schmidt

Field Summary

private int
counter
private int
sample1
private int
sample2
private int
sample3

Constructor Summary

Histogram3DNode(int s1, int s2, int s3)

Method Summary

boolean
equals(Object obj)
int
getCounter()
int
getSample1()
int
getSample2()
int
getSample3()
int
hashCode()
void
increase()
void
setCounter(int newValue)

Field Details

counter

private int counter

sample1

private final int sample1

sample2

private final int sample2

sample3

private final int sample3

Constructor Details

Histogram3DNode

public Histogram3DNode(int s1,
                       int s2,
                       int s3)

Method Details

equals

public boolean equals(Object obj)

getCounter

public int getCounter()

getSample1

public int getSample1()

getSample2

public int getSample2()

getSample3

public int getSample3()

hashCode

public int hashCode()

increase

public void increase()

setCounter

public void setCounter(int newValue)