Package org.bedework.synch.db
Class IpAddrInfo
- java.lang.Object
-
- org.bedework.synch.db.DbItem<IpAddrInfo>
-
- org.bedework.synch.db.IpAddrInfo
-
- All Implemented Interfaces:
Serializable,Comparable<IpAddrInfo>
public class IpAddrInfo extends DbItem<IpAddrInfo>
Let us block or allow addresses.- Version:
- 1.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IpAddrInfo()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(IpAddrInfo that)StringgetAddr()Get the addrbooleangetBlock()Get the valueintgetOrder()Get the orderinthashCode()voidsetAddr(String val)Set the addr - a specific address or subnet in CIDR notationvoidsetBlock(boolean val)Set the block flagvoidsetOrder(int val)Set the order - allows ordering of valuesStringtoString()protected org.bedework.util.misc.ToStringtoStringSegment(org.bedework.util.misc.ToString ts)Add our stuff to the StringBuilder
-
-
-
Method Detail
-
setOrder
public void setOrder(int val)
Set the order - allows ordering of values- Parameters:
val- int order
-
getOrder
public int getOrder()
Get the order- Returns:
- int order
-
setAddr
public void setAddr(String val)
Set the addr - a specific address or subnet in CIDR notation- Parameters:
val- String addr
-
getAddr
public String getAddr()
Get the addr- Returns:
- String name
-
setBlock
public void setBlock(boolean val)
Set the block flag- Parameters:
val- boolean block
-
getBlock
public boolean getBlock()
Get the value- Returns:
- boolean block
-
compareTo
public int compareTo(IpAddrInfo that)
- Specified by:
compareToin interfaceComparable<IpAddrInfo>- Overrides:
compareToin classDbItem<IpAddrInfo>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDbItem<IpAddrInfo>
-
toStringSegment
protected org.bedework.util.misc.ToString toStringSegment(org.bedework.util.misc.ToString ts)
Description copied from class:DbItemAdd our stuff to the StringBuilder- Overrides:
toStringSegmentin classDbItem<IpAddrInfo>- Parameters:
ts- ToString builder for result
-
-