Class IP
- java.lang.Object
-
- technology.dice.dicewhere.api.api.IP
-
- All Implemented Interfaces:
Serializable,Comparable<IP>
public class IP extends Object implements Comparable<IP>, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IP(byte[] bytes)IP(InetAddress ip)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(IP other)booleanequals(Object o)byte[]getBytes()inthashCode()booleanisGreaterThan(IP other)booleanisGreaterThanOrEqual(IP other)booleanisLowerThan(IP other)booleanisLowerThanOrEqual(IP other)
-
-
-
Constructor Detail
-
IP
public IP(@Nonnull byte[] bytes)
-
IP
public IP(@Nonnull InetAddress ip)
-
-
Method Detail
-
getBytes
public byte[] getBytes()
-
isLowerThan
public boolean isLowerThan(IP other)
-
isGreaterThan
public boolean isGreaterThan(IP other)
-
isLowerThanOrEqual
public boolean isLowerThanOrEqual(IP other)
-
isGreaterThanOrEqual
public boolean isGreaterThanOrEqual(IP other)
-
compareTo
public int compareTo(@Nonnull IP other)
- Specified by:
compareToin interfaceComparable<IP>
-
-