public class PrimitiveClassTypeInfo extends ClassTypeInfo
BIG_INT, BOOLEAN, BYTE, CHARACTER, DATE, DOUBLE, FLOAT, INT, LONG, NONE, NUMBER, OBJECT, OBJECT_ARRAY, PRIMITIVE_BOOLEAN, PRIMITIVE_BYTE, PRIMITIVE_CHARACTER, PRIMITIVE_DOUBLE, PRIMITIVE_FLOAT, PRIMITIVE_INT, PRIMITIVE_LONG, PRIMITIVE_SHORT, PRIMITIVE_VOID, RAW_CLASS, RAW_CONSUMER, RAW_ENUM_SET, RAW_FUNCTION, RAW_LIST, RAW_MAP, RAW_OPTIONAL, RAW_PREDICATE, RAW_SET, RAW_SUPPLIER, RUNNABLE, SHORT, STRING, STRING_ARRAY, VOID| Constructor and Description |
|---|
PrimitiveClassTypeInfo(Class<?> type,
Object defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
Object |
createDefaultValue() |
boolean |
is(Class<?> c) |
boolean |
isAssignableFrom(TypeInfo another) |
boolean |
isBoolean() |
boolean |
isByte() |
boolean |
isCharacter() |
boolean |
isDouble() |
boolean |
isFloat() |
boolean |
isInt() |
boolean |
isLong() |
boolean |
isNumber() |
boolean |
isPrimitive() |
boolean |
isShort() |
boolean |
isVoid() |
append, asClass, equals, hashCode, shouldConvertnewArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcollectComponentClass, consolidate, enumConstants, getComponentType, getTypeTag, isArray, isEnum, isFunctionalInterface, isInstance, isInterface, isNot, isObjectExact, isString, parampublic boolean is(Class<?> c)
is in interface TypeInfois in class ClassTypeInfoClass parameter, false
otherwisepublic boolean isPrimitive()
Class.isPrimitive()public Object createDefaultValue()
public boolean isVoid()
Void class or void classpublic boolean isBoolean()
Boolean class or boolean classpublic boolean isNumber()
Number classTypeInfo.isAssignableFrom(TypeInfo)public boolean isByte()
Byte class or byte classpublic boolean isShort()
Short class or short classpublic boolean isInt()
Integer class or int classpublic boolean isLong()
Long class or long classpublic boolean isFloat()
Float class or float classpublic boolean isDouble()
Double class or double classpublic boolean isCharacter()
Character class or char classpublic boolean isAssignableFrom(TypeInfo another)
true if the caller TypeInfo represents the super class of the class
represented by another TypeInfoClass.isAssignableFrom(Class)Copyright © 2025 HtmlUnit. All rights reserved.