public final class Asn extends Object implements SingleInternetResource<Asn,AsnRange>, Comparable<Asn>
| Modifier and Type | Field and Description |
|---|---|
static long |
ASN_16_BIT_MAX_VALUE |
static long |
ASN_32_BIT_MAX_VALUE |
static long |
ASN_MIN_VALUE |
static Asn |
FIRST_ASN |
static Asn |
LAST_16_BIT_ASN |
static Asn |
LAST_32_BIT_ASN |
static int |
NUMBER_OF_BITS |
| Modifier and Type | Method and Description |
|---|---|
BigInteger |
asBigInteger() |
AsnRange |
asRange() |
int |
bitSize() |
int |
compareTo(Asn other) |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
hasNext() |
boolean |
hasPrevious() |
boolean |
is16Bit() |
boolean |
is32Bit() |
Asn |
next() |
static Asn |
of(Long value) |
static Asn |
of(String value) |
static Asn |
parse(String text)
Parses a String into an
Asn. |
Asn |
previous() |
String |
toString() |
public static final long ASN_MIN_VALUE
public static final long ASN_16_BIT_MAX_VALUE
public static final long ASN_32_BIT_MAX_VALUE
public static final Asn FIRST_ASN
public static final Asn LAST_16_BIT_ASN
public static final Asn LAST_32_BIT_ASN
public static final int NUMBER_OF_BITS
public Asn(Long value)
public static Asn parse(String text)
Asn. The representation formats that are supported are
asplain, asdot+ and asdot as defined in RFC5396.text - a string of an AS number e.g. "AS123", "AS0.123", "123" e.t.c.AsnIllegalArgumentException - if the string cannot be parsedpublic boolean is16Bit()
public boolean is32Bit()
public int compareTo(Asn other)
compareTo in interface Comparable<Asn>public boolean hasPrevious()
hasPrevious in interface Rangeable<Asn,AsnRange>public int bitSize()
bitSize in interface SingleInternetResource<Asn,AsnRange>public BigInteger asBigInteger()
asBigInteger in interface SingleInternetResource<Asn,AsnRange>Copyright © 2016. All rights reserved.