public static Object getObject ( final AnnotationData pAnnotation , final BitUtils pBit ) { Object obj = null ; Class < ? > clazz = pAnnotation . getField ( ) . getType ( ) ; if ( clazz . equals ( Integer . class ) ) { obj = getInteger ( pAnnotation , pBit ) ; } else if ( clazz . equals ( Float . class ) ) { obj = getFloat ( pAnnotation , pBit ) ; } else if ( clazz . equals ( String . class ) ) { obj = getString ( pAnnotation , pBit ) ; } else if ( clazz . equals ( Date . class ) ) { obj = getDate ( pAnnotation , pBit ) ; } else if ( clazz . isEnum ( ) ) { obj = getEnum ( pAnnotation , pBit ) ; } return obj ; }
Method to read and object from the bytes tab