All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.nmorel.gwtjackson.rebind.property.PropertiesContainer Maven / Gradle / Ivy

Go to download

gwt-jackson is a GWT JSON serializer/deserializer mechanism based on Jackson annotations

There is a newer version: 0.15.4
Show newest version
/*
 * Copyright 2014 Nicolas Morel
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.github.nmorel.gwtjackson.rebind.property;

import com.google.gwt.thirdparty.guava.common.base.Optional;
import com.google.gwt.thirdparty.guava.common.collect.ImmutableMap;

/**
 * @author Nicolas Morel
 */
public class PropertiesContainer {

    private final ImmutableMap properties;

    private final Optional valuePropertyInfo;

    private final Optional anyGetterPropertyInfo;

    private final Optional anySetterPropertyInfo;

    public PropertiesContainer( ImmutableMap properties, Optional valuePropertyInfo,
                                Optional anyGetterPropertyInfo, Optional anySetterPropertyInfo ) {
        this.properties = properties;
        this.valuePropertyInfo = valuePropertyInfo;
        this.anyGetterPropertyInfo = anyGetterPropertyInfo;
        this.anySetterPropertyInfo = anySetterPropertyInfo;
    }

    public ImmutableMap getProperties() {
        return properties;
    }

    public Optional getValuePropertyInfo() {
        return valuePropertyInfo;
    }

    public Optional getAnyGetterPropertyInfo() {
        return anyGetterPropertyInfo;
    }

    public Optional getAnySetterPropertyInfo() {
        return anySetterPropertyInfo;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy