Java 类com.alibaba.fastjson.util.IdentityHashMap 实例源码

项目:GitHub    文件:SerializeConfig.java   
public SerializeConfig() {
    this(IdentityHashMap.DEFAULT_SIZE);
}
项目:GitHub    文件:SerializeConfig.java   
public SerializeConfig(boolean fieldBase) {
 this(IdentityHashMap.DEFAULT_SIZE, fieldBase);
}
项目:GitHub    文件:SerializeConfig.java   
public SerializeConfig(int tableSize, boolean fieldBase) {
    this.fieldBased = fieldBase;
    serializers = new IdentityHashMap<Type, ObjectSerializer>(tableSize);

    try {
        if (asm) {
            asmFactory = new ASMSerializerFactory();
        }
    } catch (Throwable eror) {
        asm = false;
    }

    put(Boolean.class, BooleanCodec.instance);
    put(Character.class, CharacterCodec.instance);
    put(Byte.class, IntegerCodec.instance);
    put(Short.class, IntegerCodec.instance);
    put(Integer.class, IntegerCodec.instance);
    put(Long.class, LongCodec.instance);
    put(Float.class, FloatCodec.instance);
    put(Double.class, DoubleSerializer.instance);
    put(BigDecimal.class, BigDecimalCodec.instance);
    put(BigInteger.class, BigIntegerCodec.instance);
    put(String.class, StringCodec.instance);
    put(byte[].class, PrimitiveArraySerializer.instance);
    put(short[].class, PrimitiveArraySerializer.instance);
    put(int[].class, PrimitiveArraySerializer.instance);
    put(long[].class, PrimitiveArraySerializer.instance);
    put(float[].class, PrimitiveArraySerializer.instance);
    put(double[].class, PrimitiveArraySerializer.instance);
    put(boolean[].class, PrimitiveArraySerializer.instance);
    put(char[].class, PrimitiveArraySerializer.instance);
    put(Object[].class, ObjectArrayCodec.instance);
    put(Class.class, MiscCodec.instance);

    put(SimpleDateFormat.class, MiscCodec.instance);
    put(Currency.class, new MiscCodec());
    put(TimeZone.class, MiscCodec.instance);
    put(InetAddress.class, MiscCodec.instance);
    put(Inet4Address.class, MiscCodec.instance);
    put(Inet6Address.class, MiscCodec.instance);
    put(InetSocketAddress.class, MiscCodec.instance);
    put(File.class, MiscCodec.instance);
    put(Appendable.class, AppendableSerializer.instance);
    put(StringBuffer.class, AppendableSerializer.instance);
    put(StringBuilder.class, AppendableSerializer.instance);
    put(Charset.class, ToStringSerializer.instance);
    put(Pattern.class, ToStringSerializer.instance);
    put(Locale.class, ToStringSerializer.instance);
    put(URI.class, ToStringSerializer.instance);
    put(URL.class, ToStringSerializer.instance);
    put(UUID.class, ToStringSerializer.instance);

    // atomic
    put(AtomicBoolean.class, AtomicCodec.instance);
    put(AtomicInteger.class, AtomicCodec.instance);
    put(AtomicLong.class, AtomicCodec.instance);
    put(AtomicReference.class, ReferenceCodec.instance);
    put(AtomicIntegerArray.class, AtomicCodec.instance);
    put(AtomicLongArray.class, AtomicCodec.instance);

    put(WeakReference.class, ReferenceCodec.instance);
    put(SoftReference.class, ReferenceCodec.instance);

       put(LinkedList.class, CollectionCodec.instance);
}
项目:boohee_v5.6    文件:ParserConfig.java   
public IdentityHashMap<Type, ObjectDeserializer> getDerializers() {
    return this.derializers;
}
项目:uavstack    文件:ParserConfig.java   
public IdentityHashMap<Type, ObjectDeserializer> getDerializers() {
    return derializers;
}
项目:itmarry    文件:ParserConfig.java   
public IdentityHashMap<Type, ObjectDeserializer> getDerializers() {
    return derializers;
}
项目:android_http_demo    文件:ParserConfig.java   
public IdentityHashMap<Type, ObjectDeserializer> getDerializers() {
    return derializers;
}
项目:AndroidNio    文件:ParserConfig.java   
public IdentityHashMap<Type, ObjectDeserializer> getDerializers() {
    return derializers;
}