/** * Set the IMDB id * * @param imdbid * the IMDB id */ public void setIMDBId(String imdbid) { if (MetadataUtil.isValidImdbId(imdbid)) { imdbId = imdbid; } }
/** * Set the original title * * @param originalTitle * the origial title to be set */ public void setOriginalTitle(String originalTitle) { this.originalTitle = StrgUtils.getNonNullString(originalTitle); }
/** * gets the BaseName (w/o extension) of an URL (better than commons-io) * * @param url * the to get the base name from * @return BaseName */ public static String getBasename(String url) { return getFileNameArray(url)[0]; }
/** * parses the parameters for first valid number from all supplied parameters, in a safe way<br> * order matters! * * @param numbers * epNr, DVDnr, aired, combined * @return number >0, or 0 as default */ public static int parseInt(Object... numbers) { return getFirstValidNumber(0, 0, numbers); }
/** * decrypt the cryted API key * * @param cryptedApiKey * the crypted API key * @return the decrypted API key */ public static String decryptApikey(String cryptedApiKey) { return AES_UTIL.decrypt(SALT, IV, "", cryptedApiKey); }
/** * encrypt the API key * * @param apiKey * the API key * @return the encrypted API key */ public static String encryptApikey(String apiKey) { return AES_UTIL.encrypt(SALT, IV, "", apiKey); } }
/** * Cleanup the map checking the time to live for each entry */ public void cleanup() { cleanup(false); }
/** * Iterator. * * @return the iterator */ public Iterator<T> iterator() { return new RingBufferIterator<>(this); }
/** * Set the assigned IMDB id for this artwork * * @param imdbId * the imdb id */ public void setImdbId(String imdbId) { this.imdbId = StrgUtils.getNonNullString(imdbId); }
/** * gets the Extension of an URL (better than commons-io) * * @param url * the to get the extension from * @return BaseName */ public static String getExtension(String url) { return getFileNameArray(url)[1]; }
/** * gets the first episode number >0 from all supplied parameters, in a safe way<br> * order matters! * * @param numbers * epNr, DVDnr, aired, combined * @return episode number >0, or -1 */ public static int getEpisodeNumber(Object... numbers) { return getFirstValidNumber(-1, 1, numbers); }
/** * Set the id of this search result * * @param id * the search result id */ public void setId(String id) { this.id = StrgUtils.getNonNullString(id); }
/** * gets the FileName (with extension) of an URL (better than commons-io) * * @param url * the to get the file name from * @return BaseName */ public static String getFilename(String url) { return getFileNameArray(url)[2]; }
/** * gets the first season number >-1 from all supplied parameters, in a safe way<br> * order matters! * * @param numbers * epNr, DVDnr, aired, combined * @return season number 0+, or -1 */ public static int getSeasonNumber(Object... numbers) { return getFirstValidNumber(-1, 0, numbers); }
/** * Set the tagline * * @param tagline * the tagline to be set */ public void setTagline(String tagline) { this.tagline = StrgUtils.getNonNullString(tagline); }
/** * Sets the character name of this cast member (if it is an actor). * * @param character * the character name */ public void setCharacter(String character) { this.character = StrgUtils.getNonNullString(character); }
/** * Set the original title for this search result * * @param originalTitle * the original title */ public void setOriginalTitle(String originalTitle) { this.originalTitle = StrgUtils.getNonNullString(originalTitle); }
/** * Set the original language for this search result * * @param originalLanguage * the original language */ public void setOriginalLanguage(String originalLanguage) { this.originalLanguage = StrgUtils.getNonNullString(originalLanguage); }
/** * Set the poster url * * @param posterUrl * the poster url */ public void setPosterUrl(String posterUrl) { this.posterUrl = StrgUtils.getNonNullString(posterUrl); }
public ImageSizeAndUrl(int width, int height, String url) { this.width = width; this.height = height; this.url = StrgUtils.getNonNullString(url); }