public class Avail extends Object implements Comparable<Avail>
Avail class.
Constructor and Description |
---|
Avail(int id,
int min,
String color)
Constructor for Avail.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Avail otherAvail)
Compares the Avail to another in input by min.
|
String |
getColor()
Getter for the field
color . |
int |
getId()
Getter for the field
id . |
int |
getMin()
Getter for the field
min . |
boolean |
isFlash()
isFlash
|
void |
setColor(String color)
Setter for the field
color . |
void |
setFlash(boolean flash)
Setter for the field
flash . |
void |
setId(int id)
Setter for the field
id . |
void |
setMin(int min)
Setter for the field
min . |
public int compareTo(Avail otherAvail)
compareTo
in interface Comparable<Avail>
public void setColor(String color)
Setter for the field color
.
color
- a String
object.public int getId()
Getter for the field id
.
public void setId(int id)
Setter for the field id
.
id
- a int.public int getMin()
Getter for the field min
.
public void setMin(int min)
Setter for the field min
.
min
- a int.public boolean isFlash()
isFlash
public void setFlash(boolean flash)
Setter for the field flash
.
flash
- a boolean.Copyright © 2015. All rights reserved.