Package org.msgpack.annotation

Examples of org.msgpack.annotation.Index


      return FieldOption.OPTIONAL;
  }
    }

    private int getFieldIndex(final Field field, int maxIndex) {
  Index a = field.getAnnotation(Index.class);
  if (a == null) {
      return maxIndex + 1;
  } else {
      return a.value();
  }
    }
View Full Code Here


  int setterIndex = getMethodIndex(desc.getWriteMethod());
  return setterIndex;
    }

    private int getMethodIndex(Method method) {
  Index a = method.getAnnotation(Index.class);
  if (a == null) {
      return -1;
  } else {
      return a.value();
  }
    }
View Full Code Here

      return FieldOption.IGNORE;
    }
  }

  private static int readFieldIndex(Field field, int maxIndex) {
    Index a = field.getAnnotation(Index.class);
    if(a == null) {
      return maxIndex + 1;
    } else {
      return a.value();
    }
  }
View Full Code Here

    }
    int forSetter = readMethodIndex(desc.getWriteMethod());
    return forSetter;
  }
  private int readMethodIndex(Method method){
    Index a = method.getAnnotation(Index.class);
    if(a == null) {
      return -1;
    } else {
      return a.value();
    }
  }
View Full Code Here

TOP

Related Classes of org.msgpack.annotation.Index

Copyright © 2018 www.massapicom. 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.