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.Object
Represents an object with an ID.
-
-
Constructor Summary
Constructors Constructor Description IdentifiableModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object object)
Check if the given object equals to this object.T
getId()
Gets the id.int
hashCode()
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:
equals
in 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:
hashCode
in classjava.lang.Object
- Returns:
- the hash code
-
-