test_class.file: preon-el/src/test/java/org/codehaus/preon/el/util/ConvertersTest.java
test_class.identifier: ConvertersTest
test_case.body: @Test
      public void testConversions() {
          assertNull(Converters.get(String.class, Boolean.class));
          Converter<Byte, Integer> converter1 = Converters.get(Byte.class, Integer.class);
          assertNotNull(converter1);
          assertEquals(new Integer(3), converter1.convert(new Byte((byte) 3)));
          Converter<Short, Integer> converter2 = Converters.get(Short.class, Integer.class);
          assertNotNull(converter2);
          assertEquals(new Integer(3), converter2.convert(new Short((byte) 3)));
          Converter<Long, Integer> converter3 = Converters.get(Long.class, Integer.class);
          assertNotNull(converter3);
          assertEquals(new Integer(3), converter3.convert(new Long(3)));
      }
test_case.class_method_signature: ConvertersTest.testConversions()
test_case.full_signature: @Test public void testConversions()
test_case.identifier: testConversions
test_case.invocations: assertNull get get assertNotNull assertEquals convert get assertNotNull assertEquals convert get assertNotNull assertEquals convert
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testConversions()
focal_class.declarator: byteToInteger = new ByteToIntegerConverter()
focal_class.modifier: private static
focal_class.original_string: private static ByteToIntegerConverter byteToInteger = new ByteToIntegerConverter();
focal_class.type: ByteToIntegerConverter
focal_class.var_name: byteToInteger
focal_class.declarator: shortToInteger = new ShortToIntegerConverter()
focal_class.modifier: private static
focal_class.original_string: private static ShortToIntegerConverter shortToInteger = new ShortToIntegerConverter();
focal_class.type: ShortToIntegerConverter
focal_class.var_name: shortToInteger
focal_class.declarator: longToInteger = new LongToIntegerConverter()
focal_class.modifier: private static
focal_class.original_string: private static LongToIntegerConverter longToInteger = new LongToIntegerConverter();
focal_class.type: LongToIntegerConverter
focal_class.var_name: longToInteger
focal_class.file: preon-el/src/main/java/org/codehaus/preon/el/util/Converters.java
focal_class.identifier: Converters
focal_class.class_method_signature: Converters.get(Class<T> from, Class<V> to)
focal_class.full_signature: public static Converter<T, V> get(Class<T> from, Class<V> to)
focal_class.identifier: get
focal_class.modifiers: public static
focal_class.parameters: (Class<T> from, Class<V> to)
focal_class.return: Converter<T, V>
focal_class.signature: Converter<T, V> get(Class<T> from, Class<V> to)
focal_class.class_method_signature: Converters.toInt(T value)
focal_class.full_signature: public static int toInt(T value)
focal_class.identifier: toInt
focal_class.modifiers: public static
focal_class.parameters: (T value)
focal_class.return: int
focal_class.signature: int toInt(T value)
focal_method.body: public static <T, V> Converter<T, V> get(Class<T> from, Class<V> to) {
          if (to == Integer.class || to == int.class) {
              if (from == Byte.class || from == byte.class) {
                  return (Converter<T, V>) byteToInteger;
              } else if (from == Short.class || from == short.class) {
                  return (Converter<T, V>) shortToInteger;
              } else if (from == Long.class || from == long.class) {
                  return (Converter<T, V>) longToInteger;
              } else {
                  return null;
              }
          } else {
              return null;
          }
      }
focal_method.class_method_signature: Converters.get(Class<T> from, Class<V> to)
focal_method.full_signature: public static Converter<T, V> get(Class<T> from, Class<V> to)
focal_method.identifier: get
focal_method.modifiers: public static
focal_method.parameters: (Class<T> from, Class<V> to)
focal_method.return: Converter<T, V>
focal_method.signature: Converter<T, V> get(Class<T> from, Class<V> to)