Package com.enragedginger.stephenerialization.annotations

Examples of com.enragedginger.stephenerialization.annotations.Stephenerializable.superCount()


   */
  private Set<StephenerializableField> generateLocalFields(Class<?> clazz, int maxVersion) {
    final Set<StephenerializableField> fields = new TreeSet<StephenerializableField>();
    final Stephenerializable annotation = clazz.getAnnotation(Stephenerializable.class);
    if (annotation != null) {
      final int superCount = annotation.superCount();
      for(Field field : clazz.getDeclaredFields()) {
        final Stephenerialize stephenerialize = field.getAnnotation(Stephenerialize.class);
        if (stephenerialize != null && stephenerialize.minVersion() <= maxVersion) {
          final StephenerializableField stephenField = new StephenerializableField();
          stephenField.setField(field);
View Full Code Here


   */
  private Set<StephenerializableField> generateLocalFields(Class<?> clazz, int maxVersion) {
    final Set<StephenerializableField> fields = new TreeSet<StephenerializableField>();
    final Stephenerializable annotation = clazz.getAnnotation(Stephenerializable.class);
    if (annotation != null) {
      final int superCount = annotation.superCount();
      for(Field field : clazz.getDeclaredFields()) {
        final Stephenerialize stephenerialize = field.getAnnotation(Stephenerialize.class);
        if (stephenerialize != null && stephenerialize.minVersion() <= maxVersion) {
          final StephenerializableField stephenField = new StephenerializableField();
          stephenField.setField(field);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.