Package ar.edu.unlp.yaqc4j.generators.java.lang

Examples of ar.edu.unlp.yaqc4j.generators.java.lang.ShortGen


   * @{inheritDoc
   */
  public Object arbitrary(final Distribution random, final long minsize,
      final long maxsize) {
    // FIXME: arbitrary upper limit value (1000). Large arrays could create an OutOfMemoryError.
    int arraySize = new ShortGen().arbitrary(random, Math.max(0, minsize), Math.min(maxsize, 1000));
    arraySize = Math.abs(arraySize);
    int[] dimensions = new int[this.dimension];
    for (int i = 0; i < this.dimension; ++i) {
      dimensions[i] = arraySize;
    }
View Full Code Here


  private static void initializeBasicGenerators() {
    // primitive types can be used because wrappers generator do not return
    // null values
    basicRegisterFor(new ByteGen(), Byte.class);
    basicRegisterFor(new ByteGen(), byte.class);
    basicRegisterFor(new ShortGen(), Short.class);
    basicRegisterFor(new ShortGen(), short.class);
    // basicRegisterFor(new IntegerGen(), Integer.class);
    // basicRegisterFor(new IntegerGen(), int.class);
    basicRegisterFor(new CharacterGen(), Character.class);
    basicRegisterFor(new CharacterGen(), char.class);
    basicRegisterFor(new BooleanGen(), Boolean.class);
View Full Code Here

TOP

Related Classes of ar.edu.unlp.yaqc4j.generators.java.lang.ShortGen

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.