public enum BazaarVariant extends Enum<BazaarVariant>
Bazaar
variants, especially for creation of
test subjects.Enum Constant and Description |
---|
BASE
The base implementation.
|
THREAD_SAFE
The thread-safe implementation.
|
Modifier and Type | Method and Description |
---|---|
<T> Bazaar.Builder<T> |
builder()
Create a bazaar builder to test.
|
<T> Bazaar.Builder<T> |
builder(Collection<? extends Vendor<? extends T>> vendors)
Create a bazaar builder to test, with initial vendors.
|
<T> BazaarImpl<T> |
createBazaarImpl()
Create an internal bazaar implementation to test.
|
String |
toString() |
static BazaarVariant |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BazaarVariant[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BazaarVariant BASE
public static final BazaarVariant THREAD_SAFE
public static BazaarVariant[] values()
for (BazaarVariant c : BazaarVariant.values()) System.out.println(c);
public static BazaarVariant valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic <T> BazaarImpl<T> createBazaarImpl()
IllegalArgumentException
- if my variant is not a kind of BazaarImpl
but some other kind of Bazaar
public <T> Bazaar.Builder<T> builder()
public <T> Bazaar.Builder<T> builder(Collection<? extends Vendor<? extends T>> vendors)
public String toString()
toString
in class Enum<BazaarVariant>
Copyright © 2019. All rights reserved.