org.opennms.web.map.config
Class Avail

java.lang.Object
  extended by org.opennms.web.map.config.Avail
All Implemented Interfaces:
Comparable

public class Avail
extends Object
implements Comparable

Avail class.

Since:
1.8.1
Version:
$Id: $
Author:
mmigliore TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Constructor Summary
Avail(int id, int min, String color)
          Constructor for Avail.
 
Method Summary
 int compareTo(Object 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Avail

public Avail(int id,
             int min,
             String color)

Constructor for Avail.

Parameters:
id - a int.
min - a int.
color - a String object.
Method Detail

compareTo

public int compareTo(Object otherAvail)
Compares the Avail to another in input by min.

Specified by:
compareTo in interface Comparable

getColor

public String getColor()

Getter for the field color.

Returns:
a String object.

setColor

public void setColor(String color)

Setter for the field color.

Parameters:
color - a String object.

getId

public int getId()

Getter for the field id.

Returns:
a int.

setId

public void setId(int id)

Setter for the field id.

Parameters:
id - a int.

getMin

public int getMin()

Getter for the field min.

Returns:
a int.

setMin

public void setMin(int min)

Setter for the field min.

Parameters:
min - a int.

isFlash

public boolean isFlash()

isFlash

Returns:
a boolean.

setFlash

public void setFlash(boolean flash)

Setter for the field flash.

Parameters:
flash - a boolean.


Copyright © 2011. All Rights Reserved.