Class ResolvedTypeParameterDeclaration.Bound
- java.lang.Object
-
- com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration.Bound
-
- Enclosing interface:
- ResolvedTypeParameterDeclaration
public static class ResolvedTypeParameterDeclaration.Bound extends java.lang.Object
A Bound on a Type Parameter.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
extendsBound
private ResolvedType
type
-
Constructor Summary
Constructors Modifier Constructor Description private
Bound(boolean extendsBound, ResolvedType type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
static ResolvedTypeParameterDeclaration.Bound
extendsBound(ResolvedType type)
Create an extends bound with the given type:ResolvedType
getType()
Get the type used in the Bound.int
hashCode()
boolean
isExtends()
Is this an extends bound?boolean
isSuper()
Is this a super bound?static ResolvedTypeParameterDeclaration.Bound
superBound(ResolvedType type)
Create a super bound with the given type:java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-