Class Celebrities
java.lang.Object
net.andreinc.mockneat.abstraction.MockUnitBase
net.andreinc.mockneat.unit.celebrities.Celebrities
- All Implemented Interfaces:
MockUnit<java.lang.String>,MockUnitString
public class Celebrities extends MockUnitBase implements MockUnitString
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Celebrities(MockNeat mockNeat) -
Method Summary
Modifier and Type Method Description Actorsactors()The method returns aActorsobject that can be used to generate famous Actors names.Actressesactresses()The method returns aActressesobject that can be used to generate famous Actresses names.static Celebritiescelebrities()JazzArtistsjazzArtists()The method returns aJazzArtistsobject that can be used to generate famous Jazz musicians name.RockStarsrockStars()The method returns aRockStarsobject that can be used to generate a famous Rock star name.java.util.function.Supplier<java.lang.String>supplier()By default theCelebritiesMockUnitStringgenerates a random celebrity by picking a randomCelebrityTypeMockUnitStringtype(CelebrityType celebrityType)The method returns a random celebrity object of the specifiedCelebrityTypecelebrity type.MockUnitStringtypes(CelebrityType... celebrityTypes)The method returns a random celebrity from the specified types.UKPrimeMinistersukPrimeMinisters()The method returns aUKPrimeMinistersobject that can be used to generate an UK Prime-minister name.USPresidentsusPresidents()The method returns aUSPresidentsobject that can be used to generate US Presidents names.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.andreinc.mockneat.abstraction.MockUnit
array, array, collection, collection, collection, collection, collection, collection, consume, consume, get, get, list, list, list, list, list, list, map, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapToDouble, mapToInt, mapToLocalDate, mapToLong, mapToString, mapToString, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, serialize, set, set, set, set, set, set, stream, val, val, valStr, valStrMethods inherited from interface net.andreinc.mockneat.abstraction.MockUnitString
accumulate, append, array, base64, escapeCsv, escapeEcmaScript, escapeHtml, escapeXml, format, md2, md5, noSpecialChars, prepend, replace, replace, replaceAll, replaceFirst, sha1, sha256, sha384, sha512, split, split, sub, sub, urlEncode, urlEncode
-
Constructor Details
-
Method Details
-
celebrities
-
jazzArtists
The method returns aJazzArtistsobject that can be used to generate famous Jazz musicians name.- Returns:
- The
JazzArtistsobject of theCelebritiesinstance.
-
rockStars
The method returns aRockStarsobject that can be used to generate a famous Rock star name.- Returns:
- The
RockStarsobject of theCelebritiesinstance.
-
ukPrimeMinisters
The method returns aUKPrimeMinistersobject that can be used to generate an UK Prime-minister name.- Returns:
- The
UKPrimeMinistersobject of theCelebritiesinstance.
-
usPresidents
The method returns aUSPresidentsobject that can be used to generate US Presidents names.- Returns:
- The
USPresidentsobject of theCelebritiesinstance.
-
actors
The method returns aActorsobject that can be used to generate famous Actors names.- Returns:
- The
Actorsobject of theCelebritiesinstance.
-
actresses
The method returns aActressesobject that can be used to generate famous Actresses names.- Returns:
- The
Actressesobject of theCelebritiesinstance.
-
type
The method returns a random celebrity object of the specifiedCelebrityTypecelebrity type.- Parameters:
celebrityType- The type of the celebrity (e.g.:CelebrityType.ACTORS,CelebrityType.ROCK_STARS, etc.)- Returns:
- The
MockUnitStringcapable of generating celebrity names based on the specified type.
-
types
The method returns a random celebrity from the specified types.- Parameters:
celebrityTypes- A var-arg array ofCelebrityTypeobjects.- Returns:
- The
MockUnitStringcapable of generating celebrity names based on the specified types.
-
supplier
public java.util.function.Supplier<java.lang.String> supplier()By default theCelebritiesMockUnitStringgenerates a random celebrity by picking a randomCelebrityType
-