public class Occurence
extends java.lang.Object
AlgoTRuleGrowth
,
Sequence
,
SequenceDatabase
Modifier and Type | Field and Description |
---|---|
java.util.List<java.lang.Short> |
occurences
a list of occurences (position in this sequence)
|
int |
sequenceID
the sequenceID (a.k.a transaction id)
|
Constructor and Description |
---|
Occurence(int sequenceID)
Contructor
|
Modifier and Type | Method and Description |
---|---|
void |
add(short occurence)
Add an occurence.
|
boolean |
equals(java.lang.Object obj)
Check if a given Occurence is the same as this one (used to store occurence in Collections).
|
short |
getFirst()
Get the first occurence in this sequence.
|
short |
getLast()
Get the last occurence in this sequence.
|
int |
hashCode()
Get the hashcode.
|
public int sequenceID
public java.util.List<java.lang.Short> occurences
public Occurence(int sequenceID)
sequenceID
- a sequence IDpublic void add(short occurence)
occurence
- the position of an itemsetpublic short getFirst()
public short getLast()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- another Occurencepublic int hashCode()
hashCode
in class java.lang.Object