congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
MutableIntegerConverter
Code IndexAdd Tabnine to your IDE (free)

How to use
MutableIntegerConverter
in
jodd.typeconverter.impl

Best Java code snippets using jodd.typeconverter.impl.MutableIntegerConverter (Showing top 4 results out of 315)

origin: oblac/jodd

  @Test
  void testConversion() {
    MutableIntegerConverter mutableIntegerConverter = (MutableIntegerConverter) TypeConverterManager.get().lookup(MutableInteger.class);

    assertNull(mutableIntegerConverter.convert(null));

    assertEquals(new MutableInteger(1), mutableIntegerConverter.convert(new MutableInteger(1)));
    assertEquals(new MutableInteger(1), mutableIntegerConverter.convert(Integer.valueOf(1)));
    assertEquals(new MutableInteger(1), mutableIntegerConverter.convert(Short.valueOf((short) 1)));
    assertEquals(new MutableInteger(1), mutableIntegerConverter.convert(Double.valueOf(1.0D)));
    assertEquals(new MutableInteger(1), mutableIntegerConverter.convert("1"));
    assertEquals(new MutableInteger(1), mutableIntegerConverter.convert(" 1 "));

    try {
      mutableIntegerConverter.convert("a");
      fail("error");
    } catch (TypeConversionException ignore) {
    }
  }
}
origin: redisson/redisson

register(Integer.class, integerConverter);
register(int.class, integerConverter);
register(MutableInteger.class, new MutableIntegerConverter(this));
origin: oblac/jodd

register(Integer.class, integerConverter);
register(int.class, integerConverter);
register(MutableInteger.class, new MutableIntegerConverter(this));
origin: org.jodd/jodd-bean

register(Integer.class, integerConverter);
register(int.class, integerConverter);
register(MutableInteger.class, new MutableIntegerConverter(this));
jodd.typeconverter.implMutableIntegerConverter

Javadoc

Converts given object to an MutableInteger.

Most used methods

  • <init>
  • convert

Popular in Java

  • Making http requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • putExtra (Intent)
  • getApplicationContext (Context)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Table (org.hibernate.mapping)
    A relational table
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now