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

com.github.segmentio.models.PropertyPayload Maven / Gradle / Ivy

The newest version!
package com.github.segmentio.models;

import com.google.common.collect.ImmutableMap;

/**
 * A payload that has a list of properties
 * 
 * @author jpollak
 *
 */
public class PropertyPayload extends BasePayload {

	private ImmutableMap properties;
	
	public PropertyPayload(String type, 
			Props properties, 
			Options options) {
		super(type, options);
		
		if (properties == null) properties = new Props();

		this.properties = ImmutableMap.copyOf(properties);
	}
	
	public ImmutableMap getProperties() {
		return properties;
	}
	
	public void setProperties(Props properties) {
		this.properties = ImmutableMap.copyOf(properties);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy