com.evrythng.thng.resource.model.store.Collection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of thng-resource-model Show documentation
Show all versions of thng-resource-model Show documentation
Models for REST resources representations.
/*
* (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