-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFeatureValue.java
More file actions
28 lines (27 loc) · 1017 Bytes
/
FeatureValue.java
File metadata and controls
28 lines (27 loc) · 1017 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package dataminingproject;
/**
*
* @author user
*/
public class FeatureValue {
private String name;
private int occurences;
public FeatureValue(String name){this.name=name;}
public String getName(){return name;}
public int getOccurences(){return occurences;}
public void setOccurences(int occurences){this.occurences=occurences;}
public int hashCode(){return name.hashCode();}
public boolean equals(Object object){
boolean returnValue=true;
if(object==null || (getClass()!= object.getClass())) returnValue=false;
if(name==null) if(((FeatureValue) object).name!=null) returnValue=false;
else if(!name.equals(((FeatureValue) object).name)) returnValue=false;
return returnValue;
}
public String toString(){return name;}
}