org.opennms.netmgt.model
Class OnmsIpInterface.PrimaryType

java.lang.Object
  extended by org.opennms.netmgt.model.OnmsIpInterface.PrimaryType
All Implemented Interfaces:
Serializable, Comparable<OnmsIpInterface.PrimaryType>
Enclosing class:
OnmsIpInterface

public static class OnmsIpInterface.PrimaryType
extends Object
implements Comparable<OnmsIpInterface.PrimaryType>, Serializable

See Also:
Serialized Form

Field Summary
static OnmsIpInterface.PrimaryType NOT_ELIGIBLE
           
static OnmsIpInterface.PrimaryType PRIMARY
           
static OnmsIpInterface.PrimaryType SECONDARY
           
 
Method Summary
 int compareTo(OnmsIpInterface.PrimaryType collType)
           
 boolean equals(Object o)
           
static OnmsIpInterface.PrimaryType get(char code)
           
static OnmsIpInterface.PrimaryType get(String code)
           
 char getCharCode()
           
 int hashCode()
          Hibernate objects should not have any specific hashCode() implementation since it should always give the same object for the same row anyways.
 boolean isGreaterThan(OnmsIpInterface.PrimaryType collType)
           
 boolean isLessThan(OnmsIpInterface.PrimaryType collType)
           
 OnmsIpInterface.PrimaryType max(OnmsIpInterface.PrimaryType collType)
           
 OnmsIpInterface.PrimaryType min(OnmsIpInterface.PrimaryType collType)
           
 void setCharCode(char collType)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PRIMARY

public static final OnmsIpInterface.PrimaryType PRIMARY

SECONDARY

public static final OnmsIpInterface.PrimaryType SECONDARY

NOT_ELIGIBLE

public static final OnmsIpInterface.PrimaryType NOT_ELIGIBLE
Method Detail

getCharCode

public char getCharCode()

setCharCode

public void setCharCode(char collType)

hashCode

public int hashCode()
Hibernate objects should not have any specific hashCode() implementation since it should always give the same object for the same row anyways.

Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

compareTo

public int compareTo(OnmsIpInterface.PrimaryType collType)
Specified by:
compareTo in interface Comparable<OnmsIpInterface.PrimaryType>

toString

public String toString()
Overrides:
toString in class Object

isLessThan

public boolean isLessThan(OnmsIpInterface.PrimaryType collType)

isGreaterThan

public boolean isGreaterThan(OnmsIpInterface.PrimaryType collType)

max

public OnmsIpInterface.PrimaryType max(OnmsIpInterface.PrimaryType collType)

min

public OnmsIpInterface.PrimaryType min(OnmsIpInterface.PrimaryType collType)

get

public static OnmsIpInterface.PrimaryType get(char code)

get

public static OnmsIpInterface.PrimaryType get(String code)


Copyright © 2011. All Rights Reserved.