- java.lang.Object
-
- java.net.SocketAddress
-
- io.netty5.channel.local.LocalAddress
-
- All Implemented Interfaces:
Serializable
,Comparable<LocalAddress>
public final class LocalAddress extends SocketAddress implements Comparable<LocalAddress>
An endpoint in the local transport. Each endpoint is identified by a unique case-insensitive string.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static LocalAddress
ANY
-
Constructor Summary
Constructors Constructor Description LocalAddress(Class<?> cls)
Creates a new instance with a random ID based on the given class.LocalAddress(String id)
Creates a new instance with the specified ID.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(LocalAddress o)
boolean
equals(Object o)
int
hashCode()
String
id()
Returns the ID of this address.String
toString()
-
-
-
Field Detail
-
ANY
public static final LocalAddress ANY
-
-
Method Detail
-
id
public String id()
Returns the ID of this address.
-
compareTo
public int compareTo(LocalAddress o)
- Specified by:
compareTo
in interfaceComparable<LocalAddress>
-
-