Package uk.co.jemos.podam.common

Examples of uk.co.jemos.podam.common.PodamLongValue


    Long retValue = null;

    for (Annotation annotation : annotations) {

      if (PodamLongValue.class.isAssignableFrom(annotation.getClass())) {
        PodamLongValue longStrategy = (PodamLongValue) annotation;

        String numValueStr = longStrategy.numValue();
        if (null != numValueStr && !"".equals(numValueStr)) {
          try {
            retValue = Long.valueOf(numValueStr);
          } catch (NumberFormatException nfe) {
            String errMsg = THE_ANNOTATION_VALUE_STR
                + numValueStr
                + " could not be converted to a Long. An exception will be thrown.";
            LOG.error(errMsg);
            throw new IllegalArgumentException(errMsg, nfe);
          }
        } else {

          long minValue = longStrategy.minValue();
          long maxValue = longStrategy.maxValue();

          // Sanity check
          if (minValue > maxValue) {
            maxValue = minValue;
          }
View Full Code Here

TOP

Related Classes of uk.co.jemos.podam.common.PodamLongValue

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.