Package com.smartsheet.api.models
Class IdentifiableModel<T>
- java.lang.Object
-
- com.smartsheet.api.models.IdentifiableModel<T>
-
- Direct Known Subclasses:
AbstractRow,Column,Comment,Discussion,NamedModel,SentUpdateRequest,Source,SummaryField,UserModel,Widget
public abstract class IdentifiableModel<T> extends java.lang.ObjectRepresents an object with an ID.
-
-
Constructor Summary
Constructors Constructor Description IdentifiableModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object object)Check if the given object equals to this object.TgetId()Gets the id.inthashCode()Return the hash code of this object.IdentifiableModel<T>setId(T id)Sets the id.
-
-
-
Method Detail
-
getId
public T getId()
Gets the id.- Returns:
- the id
-
setId
public IdentifiableModel<T> setId(T id)
Sets the id.- Parameters:
id- the new id
-
equals
public boolean equals(java.lang.Object object)
Check if the given object equals to this object.- Overrides:
equalsin classjava.lang.Object- Parameters:
object- the object to compare- Returns:
- true if given object equals to this object, false otherwise
-
hashCode
public int hashCode()
Return the hash code of this object.- Overrides:
hashCodein classjava.lang.Object- Returns:
- the hash code
-
-