Examples of MonadLong


Examples of net.sf.chellow.monad.types.MonadLong

    }
    return getValidatable(clazz, parameterNames, null, label);
  }

  public Long getLong(String parameterName) throws InternalException {
    MonadLong monadLong = null;
    HttpParameter parameter = null;
    try {
      parameter = (HttpParameter) getParameters(
          new ParameterName[] { new ParameterName(parameterName) })
          .get(0);
      String parameterValue = parameter.getFirstValue();
      if (!parameterValue.equals("null")) {
        monadLong = new MonadLong(parameterValue);
      }
    } catch (HttpException e) {
      instantiationExceptions.add(new MonadInstantiationException(
          Long.class.getName(), parameterName, e));
    }
    return monadLong == null ? null : monadLong.getLong();
  }
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.