Package org.jeasy.random.randomizers.net
Class UriRandomizer
- java.lang.Object
-
- org.jeasy.random.randomizers.AbstractRandomizer<java.net.URI>
-
- org.jeasy.random.randomizers.net.UriRandomizer
-
- All Implemented Interfaces:
Randomizer<java.net.URI>
public class UriRandomizer extends AbstractRandomizer<java.net.URI>
Generate a randomURI.- Author:
- Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
-
-
Field Summary
-
Fields inherited from class org.jeasy.random.randomizers.AbstractRandomizer
random
-
-
Constructor Summary
Constructors Constructor Description UriRandomizer()Create a newUriRandomizer.UriRandomizer(long seed)Create a newUriRandomizer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.URIgetRandomValue()Generate a random value for the given type.-
Methods inherited from class org.jeasy.random.randomizers.AbstractRandomizer
getPredefinedValuesOf, nextDouble, toString
-
-
-
-
Constructor Detail
-
UriRandomizer
public UriRandomizer()
Create a newUriRandomizer.
-
UriRandomizer
public UriRandomizer(long seed)
Create a newUriRandomizer.- Parameters:
seed- initial seed
-
-
Method Detail
-
getRandomValue
public java.net.URI getRandomValue()
Description copied from interface:RandomizerGenerate a random value for the given type.- Returns:
- a random value for the given type
-
-