Class AbstractModelObject
- java.lang.Object
-
- se.michaelthelin.spotify.model_objects.AbstractModelObject
-
- All Implemented Interfaces:
Serializable,IModelObject
- Direct Known Subclasses:
Actions,Album,AlbumSimplified,AlbumSimplifiedSpecial,Artist,ArtistSimplified,AudioAnalysis,AudioAnalysisMeasure,AudioAnalysisMeta,AudioAnalysisSection,AudioAnalysisSegment,AudioAnalysisTrack,AudioFeatures,AuthenticationError,AuthorizationCodeCredentials,Category,ClientCredentials,Context,Copyright,CurrentlyPlaying,CurrentlyPlayingContext,Cursor,Device,Disallows,Episode,EpisodeSimplified,Error,ExternalId,ExternalUrl,FeaturedPlaylists,Followers,Image,Paging,PagingCursorbased,PlaybackQueue,PlayHistory,Playlist,PlaylistSimplified,PlaylistTrack,PlaylistTrackPosition,PlaylistTracksInformation,Recommendations,RecommendationsSeed,Restrictions,ResumePoint,SavedAlbum,SavedShow,SavedTrack,SearchResult,Show,ShowSimplified,SnapshotResult,Track,TrackLink,TrackSimplified,User
public abstract class AbstractModelObject extends Object implements IModelObject
This abstract class (and its wrapping classes) is used as a sort of template for other model object classes and includes multiple generic methods.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractModelObject.BuilderEach model object needs to implement its own builder class.static classAbstractModelObject.JsonUtil<T>Each model object needs to implement its own JsonUtil class.-
Nested classes/interfaces inherited from interface se.michaelthelin.spotify.model_objects.IModelObject
IModelObject.IJsonUtil<T>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractModelObject(AbstractModelObject.Builder builder)This constructor initializes the time zone.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract StringtoString()Returns a String representation of this model object in the style:-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface se.michaelthelin.spotify.model_objects.IModelObject
builder
-
-
-
-
Constructor Detail
-
AbstractModelObject
protected AbstractModelObject(AbstractModelObject.Builder builder)
This constructor initializes the time zone.- Parameters:
builder- The builder object of the corresponding model object.
-
-