Package dev.morphia.mapping.codec.pojo
Class WildCardTypeData<T>
- java.lang.Object
-
- dev.morphia.mapping.codec.pojo.TypeData<T>
-
- dev.morphia.mapping.codec.pojo.WildCardTypeData<T>
-
- Type Parameters:
T
- the bounds type
- All Implemented Interfaces:
org.bson.codecs.pojo.TypeWithTypeParameters<T>
public class WildCardTypeData<T> extends TypeData<T>
Represents a wild card type- Since:
- 2.1.5
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WildCardTypeData.Builder
A builder for WildCardTypeData
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WildCardTypeData.Builder
builder(TypeData<?> bound, boolean upperBound)
Creates a builderboolean
equals(Object o)
int
hashCode()
boolean
isUpperBound()
String
toString()
-
Methods inherited from class dev.morphia.mapping.codec.pojo.TypeData
builder, getArray, getType, getTypeParameters, isArray, newInstance, newInstance, newInstance, setArray, withType
-
-
-
-
Method Detail
-
builder
public static WildCardTypeData.Builder builder(TypeData<?> bound, boolean upperBound)
Creates a builder- Parameters:
bound
-upperBound
- true if the type parameters represent an upper bound- Returns:
- the new builder
-
isUpperBound
public boolean isUpperBound()
- Returns:
- true if the type parameters represent an upper bound
-
-