Package se.l4.commons.serialization.spi
Class TypeViaClass
java.lang.Object
se.l4.commons.serialization.spi.TypeViaClass
- All Implemented Interfaces:
Type
public class TypeViaClass extends Object implements Type
Implementation of
TypeViaClass that wraps a Class.- Author:
- Andreas Holstenson
-
Constructor Summary
Constructors Constructor Description TypeViaClass(Class<?> type) -
Method Summary
Modifier and Type Method Description booleanequals(Object obj)Class<?>getErasedType()Get the erased type.Type[]getParameters()Get all of the parameters for this type.inthashCode()StringtoString()
-
Constructor Details
-
Method Details
-
getErasedType
Description copied from interface:TypeGet the erased type.- Specified by:
getErasedTypein interfaceType- Returns:
-
getParameters
Description copied from interface:TypeGet all of the parameters for this type.- Specified by:
getParametersin interfaceType- Returns:
-
hashCode
public int hashCode() -
equals
-
toString
-