- java.lang.Object
-
- org.praxislive.core.Value
-
- org.praxislive.core.PortAddress
-
public class PortAddress extends Value
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.praxislive.core.Value
Value.Type<T extends Value>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ComponentAddress
component()
boolean
equals(Object obj)
Values must override the default equals method.static Optional<PortAddress>
from(Value arg)
int
hashCode()
Values must override the default hashcode method.static ArgumentInfo
info()
static boolean
isValidID(String id)
static PortAddress
of(String address)
static PortAddress
of(ComponentAddress component, String id)
static PortAddress
parse(String address)
String
portID()
String
toString()
Values must override the default method to return a string representation that is immutable.-
Methods inherited from class org.praxislive.core.Value
equivalent, isEmpty, ofObject, type
-
-
-
-
Field Detail
-
SEPERATOR
public static final String SEPERATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
component
public ComponentAddress component()
-
portID
public String portID()
-
toString
public String toString()
Description copied from class:Value
Values must override the default method to return a string representation that is immutable.
-
hashCode
public int hashCode()
Description copied from class:Value
Values must override the default hashcode method.
-
equals
public boolean equals(Object obj)
Description copied from class:Value
Values must override the default equals method. This method should only returntrue
if the supplied Object is of the same type as the implementing Value. Values of an unknown type should be coerced before calling this method. This method does not have to guarantee thatthis.equals(that) == this.toString().equals(that.toString())
-
parse
public static PortAddress parse(String address) throws ValueFormatException
- Throws:
ValueFormatException
-
of
public static PortAddress of(String address)
-
of
public static PortAddress of(ComponentAddress component, String id)
-
from
public static Optional<PortAddress> from(Value arg)
-
isValidID
public static boolean isValidID(String id)
-
info
public static ArgumentInfo info()
-
-