Class MockNeat

java.lang.Object
net.andreinc.mockneat.MockNeat

public class MockNeat
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Modifier Constructor Description
    protected MockNeat()  
      MockNeat​(RandomType randomTypeType)  
      MockNeat​(RandomType randomTypeType, java.lang.Long seed)  
  • Method Summary

    Modifier and Type Method Description
    Actors actors()
    Returns a Actors object that can be used to generate arbitrary actor names (e.g.: Michael Douglas)
    Actresses actresses()
    Returns a Actresses object that can be used to generate arbitrary actresses names (e.g.: Elizabeth Taylor)
    Bools bools()
    Returns a Bools object that can be used to generate arbitrary Boolean values.
    Celebrities celebrities()  
    Chars chars()
    Returns a Chars object that can be used to generate arbitrary Character values.
    Cities cities()
    Returns a Cities object that can be used to generate arbitrary city names from around the world.
    <T> Constant<T> constant​(T object)
    Returns a new Constant object.
    <T> Constructor<T> constructor​(java.lang.Class<T> cls)
    Returns a new Constructor object.
    Countries countries()
    Returns a Countries object that can be used to generate country names or country ISO2 codes.
    Creatures creatures()
    Returns a Creatures object that can be used to generate arbitrary creature names.
    CreditCards creditCards()
    Returns a CreditCards object that can be used to generate valid Credit Card numbers.
    CSVs csvs()
    Returns a CSVs object that can be used to generate CSV lines or files.
    Currencies currencies()
    Returns a Currencies object that can be used to generate currencies-related information:
    CVVS cvvs()
    Returns a CVVS object that can be used to generate credit card cvv codes.
    Days days()
    Returns a Days object that can be used to generate a random java.time.DayOfWeek object.
    Departments departments()
    Returns a Departments object that can be used to generate arbitrary names representing department names from a company.
    Dicts dicts()
    Returns a Dicts object that can be used to generate data from the library existing dictionaries.
    Domains domains()
    Returns a Domains object
    Doubles doubles()
    Returns a Doubles object that can be used to generate arbitrary double values.
    Emails emails()
    Returns an Email object that can be used to generate arbitrary email address.
    <T,​ FT> Factory<T,​FT> factory​(java.lang.Class<T> targetCls, java.lang.Class<FT> factoryCls)
    Returns a new Factory object that can be used to instantiate Java Objects by calling a static factory method and supplying it with arbitrary data.
    FromFiles files()
    Returns a FromFiles object that can used to generate random strings from a given text file.
    <T> Filler<T> filler​(java.util.function.Supplier<T> supplier)  
    Floats floats()
    Returns a Floats object than can be used to generate random float numbers.
    Formatter fmt​(java.lang.String fmt)
    Returns a Formatter object than can be used to generate arbitrary patterns based on a given format.
    <T extends java.lang.Enum<?>>
    MockUnit<T>
    from​(java.lang.Class<T> enumClass)  
    <T> MockUnit<T> from​(java.util.List<T> alphabet)  
    <T> MockUnit<T> from​(T[] alphabet)  
    MockUnitDouble fromDoubles​(double[] alphabet)  
    MockUnitDouble fromDoubles​(java.lang.Double[] alphabet)  
    MockUnitDouble fromDoubles​(java.util.List<java.lang.Double> alphabet)  
    MockUnitDouble fromDoublesKeys​(java.util.Map<java.lang.Double,​?> map)  
    MockUnitDouble fromDoublesValues​(java.util.Map<?,​java.lang.Double> map)  
    MockUnitInt fromInts​(int[] alphabet)  
    MockUnitInt fromInts​(java.lang.Integer[] alphabet)  
    MockUnitInt fromInts​(java.util.List<java.lang.Integer> alphabet)  
    MockUnitInt fromIntsKeys​(java.util.Map<java.lang.Integer,​?> map)  
    MockUnitInt fromIntsValues​(java.util.Map<?,​java.lang.Integer> map)  
    <T> MockUnit<T> fromKeys​(java.util.Map<T,​?> map)  
    MockUnitLong fromLongs​(long[] alphabet)  
    MockUnitLong fromLongs​(java.lang.Long[] alphabet)  
    MockUnitLong fromLongs​(java.util.List<java.lang.Long> alphabet)  
    MockUnitLong fromLongsKeys​(java.util.Map<java.lang.Long,​?> map)  
    MockUnitLong fromLongsValues​(java.util.Map<?,​java.lang.Long> map)  
    MockUnitString fromStrings​(java.lang.String[] alphabet)  
    MockUnitString fromStrings​(java.util.List<java.lang.String> alphabet)  
    MockUnitString fromStringsKeys​(java.util.Map<java.lang.String,​?> map)  
    MockUnitString fromStringsValues​(java.util.Map<?,​java.lang.String> map)  
    <T> MockUnit<T> fromValues​(java.util.Map<?,​T> map)  
    Genders genders()
    Returns a Genders object that can be used to generate "gender" data.
    java.util.Random getRandom()  
    Hashes hashes()
    Returns Hashes object that can be used to generate "hash" strings.
    IBANs ibans()
    Returns a IBANs object that can be used to generate valid IBANs codes.
    Industries industries()
    Returns a Industries object that can be used to generate valid Industry names (Eg.: "Education and Health Services")
    Ints ints()
    Returns a Ints object that can be used to generate arbitrary Integer numbers.
    IntSeq intSeq()
    Returns a IntSeq object that can be used to generate arbitrary Integer numbers in a sequence.
    IPv4s ipv4s()
    Returns a IPv4s object that can be used to generate arbitrary IPv4 addresses.
    IPv6s iPv6s()
    Returns a IPv6s object that can be used to generate arbitrary IPv6 addresses.
    ISSNS issns()
    Returns a ISSNS object that can be used to generate arbitrary ISSN codes.
    JazzArtists jazzArtists()
    Returns a JazzArtists object that can be used to generate arbitrary jazz artists names
    LocalDates localDates()
    Returns a LocalDates object that can be used to generate arbitrary LocalDate objects.
    Longs longs()
    Returns a Longs object that can be used to generate arbitrary Long numbers.
    LongSeq longSeq()
    Returns a LongSeq object that can be used to generate arbitrary Long numbers in a sequence.
    Macs macs()
    Returns a Macs object that can be used to generate arbitrary physical addresses (MAC).
    Markovs markovs()
    Returns a Markovs object that can be used to generate arbitrary text that can pass as almost valid using Markov Chains
    Mimes mimes()
    Returns a Mimes object that can be used to generate arbitrary Mime Types (Eg.: "text/html", "image/x-icon", "text/calendar")
    Money money()
    Returns a Money object that can be used to generate arbitrary "money" information.
    Months months()
    Returns a Months object that can be used to generate arbitrary Month objects.
    Names names()
    Returns a Names object that can be used to generate "names" (full names, first names or last names).
    NaughtyStrings naughtyStrings()
    Returns a NaughtyStrings object that can be used to generate "naughty strings".
    ObjectMap objectMap()
    Returns a new ObjectMap object that can be used to easily generate json files.
    static MockNeat old()
    Re-use the default instance of a MockNeat class that internally uses the old Random class from the Java Standard Library.
    Passwords passwords()
    Returns a Passwords object that can be used to generate arbitrary user passwords.
    Primes primes()
    Returns a Primes object that can be used to generate prime numbers (small)
    <T> Probabilities<T> probabilites​(java.lang.Class<T> cls)
    Returns a Probabilities object that can be used to generate arbitrary data with a given probability.
    <T> Reflect<T> reflect​(java.lang.Class<T> cls)
    Returns a new Reflect<T> object that can be used to fill-up objects through reflection
    Regex regex​(java.lang.String regex)
    Returns a new Regex object that can be used to generate arbitrary text bassed on a certain regex pattern.
    static MockNeat secure()
    Re-use the default instance of a MockNeat class that internally uses a SecureRandom implementation from the Java Standard Library.
    <T> Seq<T> seq​(java.lang.Iterable<T> iterable)
    Returns a new Seq<T> object that can be used to generate values by iterating trough the given Iterable<T> in order.
    Seq<java.lang.String> seq​(DictType dictType)
    Returns a new Seq<String> object that can be used to generate values by iterating through all the lines associated with a DictType in order.
    <T> Seq<T> seq​(T[] array)
    Returns a Seq<T> object that can be used to generate values by iterating through all the elements of an array
    Shufflers shufflers()
    Returns a Shufflers object than gets the arbitrary permutations of the source.
    Space space()  
    SQLInserts sqlInserts()
    Returns a SQLInserts object that can be used to generate SQL Inserts
    SSCs sscs()  
    Strings strings()  
    static MockNeat threadLocal()
    Re-use the default instance of a MockNeat class that internally uses a ThreadLocalRandom implementation from the Java Standard Library.
    URLs urls()  
    Users users()  
    USStates usStates()  
    UUIDs uuids()  
    Words words()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • threadLocal

      public static MockNeat threadLocal()

      Re-use the default instance of a MockNeat class that internally uses a ThreadLocalRandom implementation from the Java Standard Library.

      Note: This is the recommended way to obtain a new MockUnit.

      Returns:
      An already instantiated MockNeat instance that can be reused.
    • secure

      public static MockNeat secure()

      Re-use the default instance of a MockNeat class that internally uses a SecureRandom implementation from the Java Standard Library.

      Returns:
      An already instantiated MockNeat instance that can be reused.
    • old

      public static MockNeat old()

      Re-use the default instance of a MockNeat class that internally uses the old Random class from the Java Standard Library.

      Returns:
      An already instantiated MockNeat instance that can be reused.
    • actors

      public Actors actors()

      Returns a Actors object that can be used to generate arbitrary actor names (e.g.: Michael Douglas)

      Returns:
      a re-usable Actors instance. This class implements MockUnitString
    • actresses

      public Actresses actresses()

      Returns a Actresses object that can be used to generate arbitrary actresses names (e.g.: Elizabeth Taylor)

      Returns:
      a re-usable Actresses instance. This class implements MockUnitString
    • bools

      public Bools bools()

      Returns a Bools object that can be used to generate arbitrary Boolean values.

      Returns:
      A re-usable Bools instance. The class implements MockUnit<Boolean>.
    • celebrities

      public Celebrities celebrities()
    • chars

      public Chars chars()

      Returns a Chars object that can be used to generate arbitrary Character values.

      Note: Without any additional constraint, the Chars object will generate alphanumeric characters.

      Returns:
      A re-usable Chars instance. The class implements MockUnit<Character>.
    • cities

      public Cities cities()

      Returns a Cities object that can be used to generate arbitrary city names from around the world.

      Returns:
      A re-usable Citites object.
    • creatures

      public Creatures creatures()

      Returns a Creatures object that can be used to generate arbitrary creature names.

      Returns:
      A re-usable Creatures instance. The class implements MockUnitString.
    • creditCards

      public CreditCards creditCards()

      Returns a CreditCards object that can be used to generate valid Credit Card numbers.

      Note: By default it generates AMERICAN_EXPRESS valid credit card numbers.

      Note: Credit card numbers are financial information. The values are generated at random so don't use them in real-life scenarios.

      Returns:
      A re-usable CreditCards instance. The class implements MockUnitString.
    • constructor

      public <T> Constructor<T> constructor​(java.lang.Class<T> cls)

      Returns a new Constructor object.

      This method can be used to generate MockUnit<T> from a Java Bean <T> by accessing it's constructor and supply it with arbitrary input.

      Type Parameters:
      T - The type of MockUnit<T>. This is the wrapped type.
      Parameters:
      cls - The class for type <T>. (Eg.: Student.class)
      Returns:
      A new Constructor object. The Constructor class implements MockUnit<T>.
    • constant

      public <T> Constant<T> constant​(T object)

      Returns a new Constant object.

      This method is a MockUnit<T> used to generate constant values

      Type Parameters:
      T - The type of the object
      Parameters:
      object - The constant object to return
      Returns:
      The constant object to return
    • countries

      public Countries countries()

      Returns a Countries object that can be used to generate country names or country ISO2 codes.

      Returns:
      A re-usable Countries object.
    • currencies

      public Currencies currencies()

      Returns a Currencies object that can be used to generate currencies-related information:

      • Forex pairs. (Eg.: "USD/CAD")
      • Currency codes. (Eg.: "USD", "GBP")
      • Currency symbols. (Eg.: "$", "¥")
      • Currency names. (Eg.: "Boliviano", "Dollar")
      Returns:
      A re-usable Currencies object.
    • csvs

      public CSVs csvs()

      Returns a CSVs object that can be used to generate CSV lines or files.

      Returns:
      A new CSVs object.
    • cvvs

      public CVVS cvvs()

      Returns a CVVS object that can be used to generate credit card cvv codes.

      Note: By default the values generated are 3-digits CVV codes.

      Returns:
      A re-usable CVVS object. The CVVS class implements the MockUnitString interface.
    • dicts

      public Dicts dicts()

      Returns a Dicts object that can be used to generate data from the library existing dictionaries.

      A dictionary is an enum mapping a text file containing a set of data

      The file contents are loaded in memory after the first call.

      Check DictType to see the comprehensive list.

      Returns:
      A re-usable Dicts object.
    • days

      public Days days()

      Returns a Days object that can be used to generate a random java.time.DayOfWeek object.

      Note: By default the Days object returns a random day of the week.

      Returns:
      A re-usable Days object. The Days class implements MockUnitDays interface.
    • departments

      public Departments departments()

      Returns a Departments object that can be used to generate arbitrary names representing department names from a company.

      Returns:
      A re-usable Departments object. The Departments class is implementing MockUnitString.
    • domains

      public Domains domains()

      Returns a Domains object

      that can be used to generate domain names. (eg.: "www", "info")

      Note: By default "popular" domains will be generated (like: "com", "org", "net", "edu", "gov", "info", "io")

      Returns:
      A re-usable Domains object. The Domains class implements MockUnitString
    • doubles

      public Doubles doubles()

      Returns a Doubles object that can be used to generate arbitrary double values.

      Note: By default the Doubles object returns a random double in the [0.0, 1.0) interval.

      Returns:
      A re-usable Doubles object. The Doubles class implements MockUnitDouble.
    • emails

      public Emails emails()

      Returns an Email object that can be used to generate arbitrary email address.

      Returns:
      A re-usable Emails object. The Emails class implements MockUnitString.
    • factory

      public <T,​ FT> Factory<T,​FT> factory​(java.lang.Class<T> targetCls, java.lang.Class<FT> factoryCls)

      Returns a new Factory object that can be used to instantiate Java Objects by calling a static factory method and supplying it with arbitrary data.

      The Factory class implements MockUnit<T>.

      Type Parameters:
      T - The type of the target class
      FT - The type of the factory class
      Parameters:
      targetCls - The Java class we want to create instances of.
      factoryCls - The Java class that contains the static-factory method we want to invoke.
      Returns:
      The factory MockUnit
    • filler

      public <T> Filler<T> filler​(java.util.function.Supplier<T> supplier)
    • files

      public FromFiles files()

      Returns a FromFiles object that can used to generate random strings from a given text file.

      Note: The file is loaded in memory. For the moment there is no functionality to "unload" it.

      Returns:
      A re-usable FromFiles object.
    • floats

      public Floats floats()

      Returns a Floats object than can be used to generate random float numbers.

      Note: By default it generates float numbers in the [0.0f, 1.0f) range.

      Returns:
      A re-usable Floats object. The Floats class implements MockUnitFloats.
    • fmt

      public Formatter fmt​(java.lang.String fmt)

      Returns a Formatter object than can be used to generate arbitrary patterns based on a given format.

      Parameters:
      fmt - The template of the desired pattern.
      Returns:
      A new Formatter object. The Formatter class implements MockUnitString.
    • genders

      public Genders genders()

      Returns a Genders object that can be used to generate "gender" data. (Eg.: "Male", "Female")

      Returns:
      A re-usable Genders object. The Genders class implements MockUnitString.
    • hashes

      public Hashes hashes()

      Returns Hashes object that can be used to generate "hash" strings.

      The values are actually computed from arbitrary strings of length 128.

      Returns:
      A re-usable Hashes object. The Hashes class implements MockUnitString.
    • ibans

      public IBANs ibans()

      Returns a IBANs object that can be used to generate valid IBANs codes.

      Returns:
      A re-usable IBANs object. The IBANs class implements MockUnitString.
    • industries

      public Industries industries()

      Returns a Industries object that can be used to generate valid Industry names (Eg.: "Education and Health Services")

      Returns:
      A re-usable Industries object. The Industries class implements MockUnitString.
    • ints

      public Ints ints()

      Returns a Ints object that can be used to generate arbitrary Integer numbers.

      Internally the method uses the Random::nextInt implementation.

      Returns:
      A re-usable Ints object. The Ints class implements MockUnitInt.
    • intSeq

      public IntSeq intSeq()

      Returns a IntSeq object that can be used to generate arbitrary Integer numbers in a sequence.

      Returns:
      A re-usable IntSeq object. The IntSeq class implements MockUnitInt.
    • ipv4s

      public IPv4s ipv4s()

      Returns a IPv4s object that can be used to generate arbitrary IPv4 addresses.

      Returns:
      A re-usable IPv4s object. The IPv4s class implements MockUnitString.
    • iPv6s

      public IPv6s iPv6s()

      Returns a IPv6s object that can be used to generate arbitrary IPv6 addresses.

      Returns:
      A re-usable IPv6s object. The IPv6s class implements MockUnitString.
    • issns

      public ISSNS issns()

      Returns a ISSNS object that can be used to generate arbitrary ISSN codes.

      Returns:
      A re-usable ISSNS object. The ISSNS class implements MockUnitString.
    • jazzArtists

      public JazzArtists jazzArtists()

      Returns a JazzArtists object that can be used to generate arbitrary jazz artists names

      Returns:
      a re-usable JazzArtists object. The JazzArtists class implements MockUnitString
    • localDates

      public LocalDates localDates()

      Returns a LocalDates object that can be used to generate arbitrary LocalDate objects.

      Returns:
      A re-usable LocalDates object. The LocalDates implements MockUnitLocalDate.
    • longs

      public Longs longs()

      Returns a Longs object that can be used to generate arbitrary Long numbers.

      Note:By default the internal Random.nextLong() will be called.

      Returns:
      A re-usable Longs object. The Longs class extends the MockUnitLong class.
    • longSeq

      public LongSeq longSeq()

      Returns a LongSeq object that can be used to generate arbitrary Long numbers in a sequence.

      Returns:
      A re-usable LongSeq object. The LongSeq class implements MockUnitLong.
    • macs

      public Macs macs()

      Returns a Macs object that can be used to generate arbitrary physical addresses (MAC).

      Returns:
      A re-usable Macs object. The Macs class implements MockUnitString.
    • markovs

      public Markovs markovs()

      Returns a Markovs object that can be used to generate arbitrary text that can pass as almost valid using Markov Chains

      It can also be used to generate Lorem Ipsum text that is different each time the ending method is invoked

      Returns:
      A re-usable Markovs object. The Markovs class implements MockUnitString
    • mimes

      public Mimes mimes()

      Returns a Mimes object that can be used to generate arbitrary Mime Types (Eg.: "text/html", "image/x-icon", "text/calendar")

      Returns:
      A re-usable Mimes object. The Mimes class implements MockUnitString.
    • months

      public Months months()

      Returns a Months object that can be used to generate arbitrary Month objects.

      Returns:
      A re-usable Months object. The Months class implements MockUnitMonth.
    • money

      public Money money()

      Returns a Money object that can be used to generate arbitrary "money" information.

      The generated text represents sums of money generated using NumberFormat.getCurrencyInstance().format(...).

      Note:By default it returns a random sum of money

      Returns:
      A re-usable Money object. The Money class implements MockUnitString.
    • names

      public Names names()

      Returns a Names object that can be used to generate "names" (full names, first names or last names).

      Note:By default it can be used to generate people full names.

      Note: The names are the most common names that appear in the US.

      Returns:
      A re-usable Names object. The Names class implements MockUnitString.
    • naughtyStrings

      public NaughtyStrings naughtyStrings()

      Returns a NaughtyStrings object that can be used to generate "naughty strings".

      Please check this URL for more info about the naughty strings:

      https://github.com/minimaxir/big-list-of-naughty-strings/blob/master/blns.txt

      Returns:
      A re-usable NaughtyStrings object. The NaughtStrings class implements MockUnitString.
    • passwords

      public Passwords passwords()

      Returns a Passwords object that can be used to generate arbitrary user passwords.

      Returns:
      A re-usable Passwords object. The Passwords class implements MockUnitString.
    • primes

      public Primes primes()

      Returns a Primes object that can be used to generate prime numbers (small)

      The primes are only generated in this interval [0, 7919]

      Returns:
      A re-usable Primes object. The Primes class implements MockUnitInt
    • regex

      public Regex regex​(java.lang.String regex)

      Returns a new Regex object that can be used to generate arbitrary text bassed on a certain regex pattern.

      Parameters:
      regex - The regex pattern that the generated string needs to comply.
      Returns:
      A new Regex object. The Regex class implements MockUnitString.
    • objectMap

      public ObjectMap objectMap()

      Returns a new ObjectMap object that can be used to easily generate json files.

      Returns:
      An objectMap object used to easily generate json files
    • probabilites

      public <T> Probabilities<T> probabilites​(java.lang.Class<T> cls)

      Returns a Probabilities object that can be used to generate arbitrary data with a given probability.

      Type Parameters:
      T - The type of the class for returning probabilities
      Parameters:
      cls - The type we are going to generate.
      Returns:
      A re-usable Probabilities object. The class implements MockUnit<T>.
    • reflect

      public <T> Reflect<T> reflect​(java.lang.Class<T> cls)

      Returns a new Reflect<T> object that can be used to fill-up objects through reflection

      Check filler(Supplier) as an alternative that doesn't use reflection.

      Type Parameters:
      T - The generic type of the class
      Parameters:
      cls - The type of the class you want to construct
      Returns:
      A re-usable Reflect<T> instance. The class implements MockUnit<T>
    • seq

      public <T> Seq<T> seq​(java.lang.Iterable<T> iterable)

      Returns a new Seq<T> object that can be used to generate values by iterating trough the given Iterable<T> in order.

      Type Parameters:
      T - The type of both the resulting Seq<T> and the Iterable<T>
      Parameters:
      iterable - The Iterable<T> values.
      Returns:
      A re-usable Seq<T> object. The class implements MockUnit<T>
    • seq

      public Seq<java.lang.String> seq​(DictType dictType)

      Returns a new Seq<String> object that can be used to generate values by iterating through all the lines associated with a DictType in order.

      Parameters:
      dictType - The DictType to iterate over
      Returns:
      A re-usable Seq<String> object. The class implements MockUnitString
    • seq

      public <T> Seq<T> seq​(T[] array)

      Returns a Seq<T> object that can be used to generate values by iterating through all the elements of an array

      in order.

      Type Parameters:
      T - The type of the array
      Parameters:
      array - The array to iterate over
      Returns:
      A re-usable Seq<T>. The class implement MockUnit<T>
    • sqlInserts

      public SQLInserts sqlInserts()

      Returns a SQLInserts object that can be used to generate SQL Inserts

      Returns:
      A re-usable SQLInserts object. This class implements MockUnit<SQLInsert>.
    • shufflers

      public Shufflers shufflers()

      Returns a Shufflers object than gets the arbitrary permutations of the source.

      Returns:
      A re-usable Shufflers object.
    • strings

      public Strings strings()
    • space

      public Space space()
    • sscs

      public SSCs sscs()
    • urls

      public URLs urls()
    • uuids

      public UUIDs uuids()
    • users

      public Users users()
    • usStates

      public USStates usStates()
    • words

      public Words words()
    • getRandom

      public java.util.Random getRandom()
    • from

      public <T> MockUnit<T> from​(java.util.List<T> alphabet)
    • from

      public <T> MockUnit<T> from​(T[] alphabet)
    • from

      public <T extends java.lang.Enum<?>> MockUnit<T> from​(java.lang.Class<T> enumClass)
    • fromKeys

      public <T> MockUnit<T> fromKeys​(java.util.Map<T,​?> map)
    • fromValues

      public <T> MockUnit<T> fromValues​(java.util.Map<?,​T> map)
    • fromInts

      public MockUnitInt fromInts​(java.lang.Integer[] alphabet)
    • fromInts

      public MockUnitInt fromInts​(int[] alphabet)
    • fromInts

      public MockUnitInt fromInts​(java.util.List<java.lang.Integer> alphabet)
    • fromIntsValues

      public MockUnitInt fromIntsValues​(java.util.Map<?,​java.lang.Integer> map)
    • fromIntsKeys

      public MockUnitInt fromIntsKeys​(java.util.Map<java.lang.Integer,​?> map)
    • fromDoubles

      public MockUnitDouble fromDoubles​(java.lang.Double[] alphabet)
    • fromDoubles

      public MockUnitDouble fromDoubles​(double[] alphabet)
    • fromDoubles

      public MockUnitDouble fromDoubles​(java.util.List<java.lang.Double> alphabet)
    • fromDoublesValues

      public MockUnitDouble fromDoublesValues​(java.util.Map<?,​java.lang.Double> map)
    • fromDoublesKeys

      public MockUnitDouble fromDoublesKeys​(java.util.Map<java.lang.Double,​?> map)
    • fromLongs

      public MockUnitLong fromLongs​(java.lang.Long[] alphabet)
    • fromLongs

      public MockUnitLong fromLongs​(long[] alphabet)
    • fromLongs

      public MockUnitLong fromLongs​(java.util.List<java.lang.Long> alphabet)
    • fromLongsValues

      public MockUnitLong fromLongsValues​(java.util.Map<?,​java.lang.Long> map)
    • fromLongsKeys

      public MockUnitLong fromLongsKeys​(java.util.Map<java.lang.Long,​?> map)
    • fromStrings

      public MockUnitString fromStrings​(java.lang.String[] alphabet)
    • fromStrings

      public MockUnitString fromStrings​(java.util.List<java.lang.String> alphabet)
    • fromStringsValues

      public MockUnitString fromStringsValues​(java.util.Map<?,​java.lang.String> map)
    • fromStringsKeys

      public MockUnitString fromStringsKeys​(java.util.Map<java.lang.String,​?> map)