- java.lang.Object
-
- org.praxislive.core.Value
-
- org.praxislive.core.PortInfo
-
public final class PortInfo extends Value
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPortInfo.Direction-
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 static PortInfocreate(Class<? extends Port> typeClass, PortInfo.Direction direction, PMap properties)PortInfo.Directiondirection()booleanequals(Object obj)Values must override the default equals method.static Optional<PortInfo>from(Value arg)inthashCode()Values must override the default hashcode method.static PortInfoparse(String string)Port.Type<? extends Port>portType()PMapproperties()StringtoString()Values must override the default method to return a string representation that is immutable.-
Methods inherited from class org.praxislive.core.Value
equivalent, info, isEmpty, type
-
-
-
-
Method Detail
-
direction
public PortInfo.Direction direction()
-
properties
public PMap properties()
-
toString
public String toString()
Description copied from class:ValueValues must override the default method to return a string representation that is immutable.
-
equals
public boolean equals(Object obj)
Description copied from class:ValueValues must override the default equals method. This method should only returntrueif 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())
-
hashCode
public int hashCode()
Description copied from class:ValueValues must override the default hashcode method.
-
create
public static PortInfo create(Class<? extends Port> typeClass, PortInfo.Direction direction, PMap properties)
-
parse
public static PortInfo parse(String string) throws ValueFormatException
- Throws:
ValueFormatException
-
-