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

com.evrythng.thng.resource.model.store.ObjectProperty Maven / Gradle / Ivy

There is a newer version: 1.33
Show newest version
/*
 * (c) Copyright 2015 EVRYTHNG Ltd London / Zurich
 * www.evrythng.com
 */
package com.evrythng.thng.resource.model.store;

import java.util.HashMap;
import java.util.Map;

/**
 * Model representation for number properties.
 */
public final class ObjectProperty extends Property> {

	private static final long serialVersionUID = -806157898317946571L;

	/**
	 * Creates a new empty instance of {@link ObjectProperty}.
	 */
	public ObjectProperty() {
		/* Required by jackson. */
	}

	/**
	 * Creates a new instance of {@link ObjectProperty}.
	 */
	public ObjectProperty(final String key, final Map value) {

		super(key, value != null ? new HashMap<>(value) : null);
	}

	/**
	 * Creates a new instance of {@link ObjectProperty}.
	 */
	public ObjectProperty(final String key, final Map value, final Long timestamp) {

		super(key, value != null ? new HashMap<>(value) : null, timestamp);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy