Class ResolvedTypeParameterDeclaration.Bound
- java.lang.Object
-
- com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration.Bound
-
- Enclosing interface:
- ResolvedTypeParameterDeclaration
public static class ResolvedTypeParameterDeclaration.Bound extends java.lang.ObjectA Bound on a Type Parameter.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanextendsBoundprivate ResolvedTypetype
-
Constructor Summary
Constructors Modifier Constructor Description privateBound(boolean extendsBound, ResolvedType type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)static ResolvedTypeParameterDeclaration.BoundextendsBound(ResolvedType type)Create an extends bound with the given type:ResolvedTypegetType()Get the type used in the Bound.inthashCode()booleanisExtends()Is this an extends bound?booleanisSuper()Is this a super bound?static ResolvedTypeParameterDeclaration.BoundsuperBound(ResolvedType type)Create a super bound with the given type:java.lang.StringtoString()
-
-
-
Field Detail
-
extendsBound
private boolean extendsBound
-
type
private ResolvedType type
-
-
Constructor Detail
-
Bound
private Bound(boolean extendsBound, ResolvedType type)
-
-
Method Detail
-
extendsBound
public static ResolvedTypeParameterDeclaration.Bound extendsBound(ResolvedType type)
Create an extends bound with the given type:extends "given type"
-
superBound
public static ResolvedTypeParameterDeclaration.Bound superBound(ResolvedType type)
Create a super bound with the given type:super "given type"
-
getType
public ResolvedType getType()
Get the type used in the Bound.
-
isExtends
public boolean isExtends()
Is this an extends bound?
-
isSuper
public boolean isSuper()
Is this a super bound?
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-