Package jodd.mutable

Examples of jodd.mutable.MutableInteger


  // ---------------------------------------------------------------- mutables

  @Test
  public void testMutableToInteger() {
    Object mutables = new MutableInteger[] {
        new MutableInteger(7),
        new MutableInteger(3),
        new MutableInteger(1)
    };

    Object result = TypeConverterManager.convertType(mutables, Integer[].class);
    assertNotNull(result);
View Full Code Here


  }

  @Test
  public void testMutableToInt() {
    Object mutables = new MutableInteger[] {
        new MutableInteger(7),
        new MutableInteger(3),
        new MutableInteger(1)
    };

    Object result = TypeConverterManager.convertType(mutables, int[].class);
    assertNotNull(result);
View Full Code Here

    if (value.getClass() == MutableInteger.class) {
      return (MutableInteger) value;
    }

    return new MutableInteger(typeConverter.convert(value));
  }
View Full Code Here

TOP

Related Classes of jodd.mutable.MutableInteger

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.