Package hydra.scala.syntax
Class TypeBounds
- java.lang.Object
-
- hydra.scala.syntax.TypeBounds
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TypeBounds>
public class TypeBounds extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<TypeBounds>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTypeBounds.BuilderA fluent builder forTypeBounds.
-
Constructor Summary
Constructors Constructor Description TypeBounds(Optional<Type> lo, Optional<Type> hi)Constructs an immutableTypeBounds.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TypeBounds.Builderbuilder()Creates a new fluent builder forTypeBounds.intcompareTo(TypeBounds other)booleanequals(java.lang.Object other)inthashCode()java.lang.StringtoString()TypeBoundswithHi(Optional<Type> hi)Returns a copy of thisTypeBoundswithhireplaced.TypeBoundswithLo(Optional<Type> lo)Returns a copy of thisTypeBoundswithloreplaced.
-
-
-
Constructor Detail
-
TypeBounds
public TypeBounds(Optional<Type> lo, Optional<Type> hi)
Constructs an immutableTypeBounds.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
compareTo
public int compareTo(TypeBounds other)
- Specified by:
compareToin interfacejava.lang.Comparable<TypeBounds>
-
withLo
public TypeBounds withLo(Optional<Type> lo)
Returns a copy of thisTypeBoundswithloreplaced.
-
withHi
public TypeBounds withHi(Optional<Type> hi)
Returns a copy of thisTypeBoundswithhireplaced.
-
builder
public static TypeBounds.Builder builder()
Creates a new fluent builder forTypeBounds.
-
-