| Modifier and Type | Field and Description |
|---|---|
| private static final PreferredAddressTypeComparator | |
| private static final PreferredAddressTypeComparator | |
| private final Class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static PreferredAddressTypeComparator | |
| public int | compare(InetAddress
the first object to be compared. o1, InetAddress the second object to be compared. o2)Implements java. |
| IPv4 | back to summary |
|---|---|
| private static final PreferredAddressTypeComparator IPv4 | |
| IPv6 | back to summary |
|---|---|
| private static final PreferredAddressTypeComparator IPv6 | |
| preferredAddressType | back to summary |
|---|---|
| private final Class<? extends InetAddress> preferredAddressType | |
| PreferredAddressTypeComparator | back to summary |
|---|---|
| private PreferredAddressTypeComparator(Class<? extends InetAddress> preferredAddressType) | |
| comparator | back to summary |
|---|---|
| pack-priv static PreferredAddressTypeComparator comparator(InternetProtocolFamily family) | |
| compare | back to summary |
|---|---|
| public int compare(InetAddress o1, InetAddress o2) Implements java. Doc from java. Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
The implementor must ensure that
The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |