Package org.eclipse.core.internal.databinding

Examples of org.eclipse.core.internal.databinding.Pair


    for (int i = 0; i < fromTypes.length; i++) {
      Class fromType = fromTypes[i];
      if (!fromType.equals(Byte.class) && !fromType.equals(Byte.TYPE)) {
        String fromName = (fromType.isPrimitive()) ? getKeyForClass(fromType, null) : fromType.getName();
       
        map.put(new Pair(fromName, BYTE_TYPE), new NumberToByteConverter(numberFormat, fromType, true));
        map.put(new Pair(fromName, Byte.class.getName()), new NumberToByteConverter(numberFormat, fromType, false));
      }
    }
  }
View Full Code Here


    for (int i = 0; i < fromTypes.length; i++) {
      Class fromType = fromTypes[i];
      if (!fromType.equals(Short.class) && !fromType.equals(Short.TYPE)) {
        String fromName = (fromType.isPrimitive()) ? getKeyForClass(fromType, null) : fromType.getName();
       
        map.put(new Pair(fromName, SHORT_TYPE), new NumberToShortConverter(numberFormat, fromType, true));
        map.put(new Pair(fromName, Short.class.getName()), new NumberToShortConverter(numberFormat, fromType, false));
      }
    }
  }
View Full Code Here

    for (int i = 0; i < fromTypes.length; i++) {
      Class fromType = fromTypes[i];
      if (!fromType.equals(Integer.class) && !fromType.equals(Integer.TYPE)) {
        String fromName = (fromType.isPrimitive()) ? getKeyForClass(fromType, null) : fromType.getName();
       
        map.put(new Pair(fromName, INTEGER_TYPE), new NumberToIntegerConverter(numberFormat, fromType, true));
        map.put(new Pair(fromName, Integer.class.getName()), new NumberToIntegerConverter(numberFormat, fromType, false));
      }
    }
  }
View Full Code Here

    for (int i = 0; i < fromTypes.length; i++) {
      Class fromType = fromTypes[i];
      if (!fromType.equals(Long.class) && !fromType.equals(Long.TYPE)) {
        String fromName = (fromType.isPrimitive()) ? getKeyForClass(fromType, null) : fromType.getName();
       
        map.put(new Pair(fromName, LONG_TYPE), new NumberToLongConverter(numberFormat, fromType, true));
        map.put(new Pair(fromName, Long.class.getName()), new NumberToLongConverter(numberFormat, fromType, false));
      }
    }
  }
View Full Code Here

    for (int i = 0; i < fromTypes.length; i++) {
      Class fromType = fromTypes[i];
      if (!fromType.equals(Float.class) && !fromType.equals(Float.TYPE)) {
        String fromName = (fromType.isPrimitive()) ? getKeyForClass(fromType, null) : fromType.getName();
       
        map.put(new Pair(fromName, FLOAT_TYPE), new NumberToFloatConverter(numberFormat, fromType, true));
        map.put(new Pair(fromName, Float.class.getName()), new NumberToFloatConverter(numberFormat, fromType, false));
      }
    }
  }
View Full Code Here

    for (int i = 0; i < fromTypes.length; i++) {
      Class fromType = fromTypes[i];
      if (!fromType.equals(Double.class) && !fromType.equals(Double.TYPE)) {
        String fromName = (fromType.isPrimitive()) ? getKeyForClass(fromType, null) : fromType.getName();
       
        map.put(new Pair(fromName, DOUBLE_TYPE), new NumberToDoubleConverter(numberFormat, fromType, true));
        map.put(new Pair(fromName, Double.class.getName()), new NumberToDoubleConverter(numberFormat, fromType, false));
      }
    }
  }
View Full Code Here

    for (int i = 0; i < fromTypes.length; i++) {
      Class fromType = fromTypes[i];
      if (!fromType.equals(BigInteger.class)) {
        String fromName = (fromType.isPrimitive()) ? getKeyForClass(fromType, null) : fromType.getName();
       
        map.put(new Pair(fromName, BigInteger.class.getName()), new NumberToBigIntegerConverter(numberFormat, fromType));
      }
    }
  }
View Full Code Here

    for (int i = 0; i < fromTypes.length; i++) {
      Class fromType = fromTypes[i];
      if (!fromType.equals(BigDecimal.class)) {
        String fromName = (fromType.isPrimitive()) ? getKeyForClass(fromType, null) : fromType.getName();
       
        map.put(new Pair(fromName, BigDecimal.class.getName()), new NumberToBigDecimalConverter(numberFormat, fromType));
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.core.internal.databinding.Pair

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.