Class Celebrities

    • Constructor Detail

      • Celebrities

        public Celebrities​(MockNeat mockNeat)
    • Method Detail

      • celebrities

        public static Celebrities celebrities()
      • jazzArtists

        public JazzArtists jazzArtists()
        The method returns a JazzArtists object that can be used to generate famous Jazz musicians name.
        Returns:
        The JazzArtists object of the Celebrities instance.
      • rockStars

        public RockStars rockStars()
        The method returns a RockStars object that can be used to generate a famous Rock star name.
        Returns:
        The RockStars object of the Celebrities instance.
      • ukPrimeMinisters

        public UKPrimeMinisters ukPrimeMinisters()
        The method returns a UKPrimeMinisters object that can be used to generate an UK Prime-minister name.
        Returns:
        The UKPrimeMinisters object of the Celebrities instance.
      • usPresidents

        public USPresidents usPresidents()
        The method returns a USPresidents object that can be used to generate US Presidents names.
        Returns:
        The USPresidents object of the Celebrities instance.
      • actors

        public Actors actors()
        The method returns a Actors object that can be used to generate famous Actors names.
        Returns:
        The Actors object of the Celebrities instance.
      • actresses

        public Actresses actresses()
        The method returns a Actresses object that can be used to generate famous Actresses names.
        Returns:
        The Actresses object of the Celebrities instance.
      • type

        public MockUnitString type​(CelebrityType celebrityType)
        The method returns a random celebrity object of the specified CelebrityType celebrity type.
        Parameters:
        celebrityType - The type of the celebrity (e.g.: CelebrityType.ACTORS, CelebrityType.ROCK_STARS, etc.)
        Returns:
        The MockUnitString capable of generating celebrity names based on the specified type.
      • types

        public MockUnitString types​(CelebrityType... celebrityTypes)
        The method returns a random celebrity from the specified types.
        Parameters:
        celebrityTypes - A var-arg array of CelebrityType objects.
        Returns:
        The MockUnitString capable of generating celebrity names based on the specified types.
      • supplier

        public java.util.function.Supplier<java.lang.String> supplier()
        By default the Celebrities MockUnitString generates a random celebrity by picking a random CelebrityType
        Specified by:
        supplier in interface MockUnit<java.lang.String>
        Returns:
        A Supplier<String> that when invoked returns a random celebrity name.