Package hydra.java.syntax
Class TypeBound_ClassOrInterface
- java.lang.Object
-
- hydra.java.syntax.TypeBound_ClassOrInterface
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TypeBound_ClassOrInterface>
public class TypeBound_ClassOrInterface extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<TypeBound_ClassOrInterface>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<AdditionalBound>additionalstatic NameADDITIONALName of thehydra.java.syntax.TypeBound_ClassOrInterface.additionalfield.ClassOrInterfaceTypetypestatic NameTYPEName of thehydra.java.syntax.TypeBound_ClassOrInterface.typefield.static NameTYPE_Name of thehydra.java.syntax.TypeBound_ClassOrInterfacetype.
-
Constructor Summary
Constructors Constructor Description TypeBound_ClassOrInterface(ClassOrInterfaceType type, java.util.List<AdditionalBound> additional)Constructs an immutableTypeBound_ClassOrInterface.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(TypeBound_ClassOrInterface other)booleanequals(java.lang.Object other)inthashCode()TypeBound_ClassOrInterfacewithAdditional(java.util.List<AdditionalBound> additional)Returns a copy of thisTypeBound_ClassOrInterfacewithadditionalreplaced.TypeBound_ClassOrInterfacewithType(ClassOrInterfaceType type)Returns a copy of thisTypeBound_ClassOrInterfacewithtypereplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thehydra.java.syntax.TypeBound_ClassOrInterfacetype.
-
TYPE
public static final Name TYPE
Name of thehydra.java.syntax.TypeBound_ClassOrInterface.typefield.
-
ADDITIONAL
public static final Name ADDITIONAL
Name of thehydra.java.syntax.TypeBound_ClassOrInterface.additionalfield.
-
type
public final ClassOrInterfaceType type
-
additional
public final java.util.List<AdditionalBound> additional
-
-
Constructor Detail
-
TypeBound_ClassOrInterface
public TypeBound_ClassOrInterface(ClassOrInterfaceType type, java.util.List<AdditionalBound> additional)
Constructs an immutableTypeBound_ClassOrInterface.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(TypeBound_ClassOrInterface other)
- Specified by:
compareToin interfacejava.lang.Comparable<TypeBound_ClassOrInterface>
-
withType
public TypeBound_ClassOrInterface withType(ClassOrInterfaceType type)
Returns a copy of thisTypeBound_ClassOrInterfacewithtypereplaced.
-
withAdditional
public TypeBound_ClassOrInterface withAdditional(java.util.List<AdditionalBound> additional)
Returns a copy of thisTypeBound_ClassOrInterfacewithadditionalreplaced.
-
-