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

com.podio.rating.RatingValuesMap Maven / Gradle / Ivy

package com.podio.rating;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import org.codehaus.jackson.annotate.JsonAnySetter;

public class RatingValuesMap implements Serializable {

	private static final long serialVersionUID = 1L;
	
	private final Map values = new HashMap();

	public TypeRating get(RatingType type) {
		return values.get(type);
	}

	@JsonAnySetter
	public void set(String type, TypeRating value) {
		values.put(RatingType.getByName(type), value);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy