Package dev.drtheo.autojson.util
Interface ClassAdapter
-
- All Implemented Interfaces:
public interface ClassAdapter<T, Array>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classClassAdapter.Primitivepublic abstract classClassAdapter.Wrappedpublic abstract classClassAdapter.Num
-
Method Summary
Modifier and Type Method Description abstract Tget(Unsafe unsafe, Object obj, long address)abstract voidset(Unsafe unsafe, Object obj, long address, T value)ArraycastArray(Object o)voidsetArray(Object obj, int index, T value)intgetArrayLength(Object obj)TgetArray(Object obj, int index)abstract voidset(Array ts, int index, T value)abstract intgetLength(Array ts)abstract Tget(Array ts, int index)static ClassAdapter<out Object, out Object>match(Type type)static ClassAdapter<out Object, out Object>matchUnboxed(Type type)-
-
Method Detail
-
getArrayLength
int getArrayLength(Object obj)
-
match
static ClassAdapter<out Object, out Object> match(Type type)
-
matchUnboxed
static ClassAdapter<out Object, out Object> matchUnboxed(Type type)
-
-
-
-