public abstract class IpRange extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
IpRange.Factory
Constructs new instances of
IpRange . |
Constructor and Description |
---|
IpRange() |
Modifier and Type | Method and Description |
---|---|
String |
attributesToString()
Builds a string showing the current attribute values
|
boolean |
equals(Object object)
Returns
true if the argument is an IpRange instance and all identifiers for this
entity equal the identifiers of the argument entity. |
BigInteger |
getEnd() |
byte[] |
getEndValue() |
Long |
getId() |
BigInteger |
getStart() |
byte[] |
getStartValue() |
String |
getStringRepresentation()
The string representation of the IP range as it was used during creation / update of the
range.
|
int |
hashCode()
Returns a hash code based on this entity's identifiers.
|
abstract boolean |
isInRange(BigInteger ip) |
void |
setEnd(BigInteger end) |
void |
setEndValue(byte[] endValue) |
void |
setId(Long id) |
void |
setStart(BigInteger start) |
void |
setStartValue(byte[] startValue) |
void |
setStringRepresentation(String stringRepresentation) |
public String attributesToString()
public boolean equals(Object object)
true
if the argument is an IpRange instance and all identifiers for this
entity equal the identifiers of the argument entity. Returns false
otherwise.public BigInteger getEnd()
public byte[] getEndValue()
public Long getId()
public BigInteger getStart()
public byte[] getStartValue()
public String getStringRepresentation()
The string representation of the IP range as it was used during creation / update of the range.
public int hashCode()
public abstract boolean isInRange(BigInteger ip)
public void setEnd(BigInteger end)
public void setEndValue(byte[] endValue)
public void setId(Long id)
public void setStart(BigInteger start)
public void setStartValue(byte[] startValue)
public void setStringRepresentation(String stringRepresentation)
Copyright © 2019 Communote team. All rights reserved.