com.fasterxml.jackson.databind.type.CollectionType.java Source code

Java tutorial

Introduction

Here is the source code for com.fasterxml.jackson.databind.type.CollectionType.java

Source

package com.fasterxml.jackson.databind.type;

import com.fasterxml.jackson.databind.JavaType;

public final class CollectionType extends CollectionLikeType {
    private CollectionType(Class<?> paramClass, JavaType paramJavaType, Object paramObject1, Object paramObject2) {
        super(paramClass, paramJavaType, paramObject1, paramObject2);
    }

    public static CollectionType construct(Class<?> paramClass, JavaType paramJavaType) {
        return new CollectionType(paramClass, paramJavaType, null, null);
    }

    protected JavaType _narrow(Class<?> paramClass) {
        return new CollectionType(paramClass, this._elementType, null, null);
    }

    public JavaType narrowContentsBy(Class<?> paramClass) {
        if (paramClass == this._elementType.getRawClass())
            return this;
        return new CollectionType(this._class, this._elementType.narrowBy(paramClass), this._valueHandler,
                this._typeHandler);
    }

    public String toString() {
        return "[collection type; class " + this._class.getName() + ", contains " + this._elementType + "]";
    }

    public JavaType widenContentsBy(Class<?> paramClass) {
        if (paramClass == this._elementType.getRawClass())
            return this;
        return new CollectionType(this._class, this._elementType.widenBy(paramClass), this._valueHandler,
                this._typeHandler);
    }

    public CollectionType withContentTypeHandler(Object paramObject) {
        return new CollectionType(this._class, this._elementType.withTypeHandler(paramObject), this._valueHandler,
                this._typeHandler);
    }

    public CollectionType withContentValueHandler(Object paramObject) {
        return new CollectionType(this._class, this._elementType.withValueHandler(paramObject), this._valueHandler,
                this._typeHandler);
    }

    public CollectionType withTypeHandler(Object paramObject) {
        return new CollectionType(this._class, this._elementType, this._valueHandler, paramObject);
    }

    public CollectionType withValueHandler(Object paramObject) {
        return new CollectionType(this._class, this._elementType, paramObject, this._typeHandler);
    }
}

/* Location:           /Users/dantheman/src/fffffffffattttt/basis/classes_dex2jar.jar
 * Qualified Name:     com.fasterxml.jackson.databind.type.CollectionType
 * JD-Core Version:    0.6.2
 */