Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.jackson.datatype.guava.deser;
 
 
    public ImmutableSortedMapDeserializer(MapType typeKeyDeserializer keyDeserTypeDeserializer typeDeser,
            JsonDeserializer<?> deser) {
        super(typekeyDesertypeDeserdeser);
    }
    @SuppressWarnings("unchecked")
    @Override
    protected Builder<ObjectObjectcreateBuilder() {
        /*
         * Not quite sure what to do with sorting/ordering; may require better
         * support either via annotations, or via custom serialization (bean
         * style that includes ordering aspects)
         */
        @SuppressWarnings("rawtypes")
        ImmutableSortedMap.Builder<?, ObjectnaturalOrder = ImmutableSortedMap.<ComparableObject>naturalOrder();
        ImmutableSortedMap.Builder<ObjectObjectbuilder = (ImmutableSortedMap.Builder<ObjectObject>) naturalOrder;
        return builder;
    }
    @Override
            TypeDeserializer typeDeserJsonDeserializer<?> valueDeser) {
        return new ImmutableSortedMapDeserializer(keyDesertypeDeservalueDeser);
    }
New to GrepCode? Check out our FAQ X