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

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

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

import com.evrythng.thng.resource.model.core.DurableResourceModel;

import java.util.LinkedHashSet;

/**
 * Model representation for collections.
 */
public class Collection extends DurableResourceModel {

	private static final long serialVersionUID = -2064399431964890923L;
	private String name;
	private String description;
	/**
	 * Collection of {@link Thng#id} references.
	 */
	private LinkedHashSet thngs;

	public String getName() {

		return name;
	}

	public void setName(final String name) {

		this.name = name;
	}

	public String getDescription() {

		return description;
	}

	public void setDescription(final String description) {

		this.description = description;
	}

	public LinkedHashSet getThngs() {

		return thngs;
	}

	public void setThngs(final LinkedHashSet thngs) {

		this.thngs = thngs;
	}

	@Override
	public String toString() {

		StringBuilder sb = new StringBuilder("Collection{");
		sb.append("name='").append(name).append('\'');
		sb.append(", description='").append(description).append('\'');
		sb.append(", thngs=").append(thngs);
		sb.append('}');
		return sb.toString();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy