Package org.junit.platform.engine
Class UniqueId.Segment
- java.lang.Object
-
- org.junit.platform.engine.UniqueId.Segment
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- UniqueId
@API(status=STABLE, since="1.0") public static class UniqueId.Segment extends java.lang.Object implements java.io.SerializableA segment of aUniqueIdcomprises a type and a value.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUIDprivate java.lang.Stringtypeprivate java.lang.Stringvalue
-
Constructor Summary
Constructors Constructor Description Segment(java.lang.String type, java.lang.String value)Create a newSegmentusing the suppliedtypeandvalue.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetType()Get the type of this segment.java.lang.StringgetValue()Get the value of this segment.inthashCode()java.lang.StringtoString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
type
private final java.lang.String type
-
value
private final java.lang.String value
-
-
Method Detail
-
getType
public java.lang.String getType()
Get the type of this segment.
-
getValue
public java.lang.String getValue()
Get the value of this segment.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-