source: src/main/java/agents/anac/y2014/AgentYK/BidElement.java

Last change on this file was 1, checked in by Wouter Pasman, 6 years ago

Initial import : Genius 9.0.0

File size: 653 bytes
Line 
1package agents.anac.y2014.AgentYK;
2
3import genius.core.issue.Value;
4
5public class BidElement {
6 private int issueNr;
7 private Value value;
8
9 public BidElement(Integer issueNr, Value value) {
10 this.issueNr = issueNr;
11 this.value = value;
12 }
13
14 public int getIssueNumber() {
15 return this.issueNr;
16 }
17
18 public Value getValue() {
19 return this.value;
20 }
21
22 public boolean equals(BidElement other) {
23 if( (this.issueNr == other.getIssueNumber() && this.value.toString().equals(other.getValue().toString()))) {
24 return true;
25 }
26 return false;
27 }
28
29 public String toString() {
30 String str = "" + issueNr + "," + value.toString();
31 return str;
32 }
33}
Note: See TracBrowser for help on using the repository browser.