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, SavedEpisode, 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:
  • Constructor Details

    • AbstractModelObject

      protected AbstractModelObject(AbstractModelObject.Builder builder)
      This constructor initializes the time zone.
      Parameters:
      builder - The builder object of the corresponding model object.
  • Method Details

    • toString

      public abstract String toString()
      Returns a String representation of this model object in the style:

      ModelObject(attr1=value1, attr2=value2, ...)

      Overrides:
      toString in class Object