ca.pfv.spmf.algorithms.sequentialpatterns.fournier2008_seqdim
Class ItemSimple
- java.lang.Object
-
- ca.pfv.spmf.algorithms.sequentialpatterns.fournier2008_seqdim.ItemSimple
-
- Direct Known Subclasses:
- ItemValued
public class ItemSimple extends java.lang.ObjectThis class represents an item as used by the multidimensional sequential pattern mining algorithm SeqDim and the Fournier-Viger et al. (2008) algorithm.- See Also:
Itemset,AlgoSeqDim,AlgoFournierViger08
-
-
Constructor Summary
Constructors Constructor and Description ItemSimple(int id)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object object)Check if this item is equal to another given itemintgetId()Get the ID of this item.inthashCode()Get the hashcode for this item.java.lang.StringtoString()Get a String representation of this item.
-
-
-
Constructor Detail
-
ItemSimple
public ItemSimple(int id)
Constructor- Parameters:
id- the ID of the item
-
-
Method Detail
-
getId
public int getId()
Get the ID of this item.- Returns:
- the ID.
-
toString
public java.lang.String toString()
Get a String representation of this item.- Overrides:
toStringin classjava.lang.Object- Returns:
- a String
-
equals
public boolean equals(java.lang.Object object)
Check if this item is equal to another given item- Overrides:
equalsin classjava.lang.Object- Parameters:
object- another Item.- Returns:
- true if equal, otherwise, false.
-
hashCode
public int hashCode()
Get the hashcode for this item.- Overrides:
hashCodein classjava.lang.Object- Returns:
- a hashcode as a int value.
-
-
DMelt 3.0 © DataMelt by jWork.ORG