protected List<Class<?>> getExtensionClasses() { return Lists.<Class<?>> newArrayList( ArrayExtensions.class, BigDecimalExtensions.class, BigIntegerExtensions.class, BooleanExtensions.class, ByteExtensions.class, CharacterExtensions.class, CollectionExtensions.class, ComparableExtensions.class, DoubleExtensions.class, FloatExtensions.class, FunctionExtensions.class, IntegerExtensions.class, IterableExtensions.class, IteratorExtensions.class, ListExtensions.class, LongExtensions.class, MapExtensions.class, ObjectExtensions.class, ProcedureExtensions.class, ShortExtensions.class, StringExtensions.class); }
protected Multimap<Class<?>, Class<?>> simpleComputeExtensionClasses() { Multimap<Class<?>, Class<?>> result = ArrayListMultimap.create(); result.put(String.class, StringExtensions.class); result.put(Double.TYPE, DoubleExtensions.class); result.put(Float.TYPE, FloatExtensions.class); result.put(Long.TYPE, LongExtensions.class); result.put(Integer.TYPE, IntegerExtensions.class); result.put(Character.TYPE, CharacterExtensions.class); result.put(Short.TYPE, ShortExtensions.class); result.put(Byte.TYPE, ByteExtensions.class); result.put(Boolean.TYPE, BooleanExtensions.class); result.put(double[].class, ArrayExtensions.class); result.put(float[].class, ArrayExtensions.class); result.put(long[].class, ArrayExtensions.class); result.put(int[].class, ArrayExtensions.class); result.put(char[].class, ArrayExtensions.class); result.put(short[].class, ArrayExtensions.class); result.put(byte[].class, ArrayExtensions.class); result.put(boolean[].class, ArrayExtensions.class); result.put(BigInteger.class, BigIntegerExtensions.class); result.put(BigDecimal.class, BigDecimalExtensions.class); result.put(Comparable.class, ComparableExtensions.class); result.put(Object.class, ObjectExtensions.class); result.put(List.class, ListExtensions.class); result.put(Collection.class, CollectionExtensions.class); result.put(Map.class, CollectionExtensions.class); result.put(Map.class, MapExtensions.class); result.put(Iterable.class, IterableExtensions.class); result.put(Iterator.class, IteratorExtensions.class); result.put(Functions.Function0.class, FunctionExtensions.class); result.put(Functions.Function1.class, FunctionExtensions.class); result.put(Functions.Function2.class, FunctionExtensions.class); result.put(Functions.Function3.class, FunctionExtensions.class); result.put(Functions.Function4.class, FunctionExtensions.class); result.put(Functions.Function5.class, FunctionExtensions.class); result.put(Functions.Function6.class, FunctionExtensions.class); result.put(Procedures.Procedure0.class, ProcedureExtensions.class); result.put(Procedures.Procedure1.class, ProcedureExtensions.class); result.put(Procedures.Procedure2.class, ProcedureExtensions.class); result.put(Procedures.Procedure3.class, ProcedureExtensions.class); result.put(Procedures.Procedure4.class, ProcedureExtensions.class); result.put(Procedures.Procedure5.class, ProcedureExtensions.class); result.put(Procedures.Procedure6.class, ProcedureExtensions.class); return result; }