@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","WebDriverConfiguration"}) @Immutable @CheckReturnValue public final class ImmutableWebDriverConfiguration extends Object implements WebDriverConfiguration
WebDriverConfiguration.
Use the builder to create immutable instances:
ImmutableWebDriverConfiguration.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableWebDriverConfiguration.Builder
Builds instances of type
ImmutableWebDriverConfiguration. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableWebDriverConfiguration.Builder |
builder()
Creates a builder for
ImmutableWebDriverConfiguration. |
static ImmutableWebDriverConfiguration |
copyOf(WebDriverConfiguration instance)
Creates an immutable copy of a
WebDriverConfiguration value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableWebDriverConfiguration that have equal attribute values. |
com.google.common.collect.ImmutableList<Capability> |
getWebDriverCapabilities() |
String |
getWebDriverClassName() |
int |
hashCode()
Computes a hash code from attributes:
debug, webDriverClassName, webDriverCapabilities. |
boolean |
isDebug() |
String |
toString()
Prints the immutable value
WebDriverConfiguration with attribute values. |
ImmutableWebDriverConfiguration |
withDebug(boolean value)
Copy the current immutable object by setting a value for the
debug attribute. |
ImmutableWebDriverConfiguration |
withWebDriverCapabilities(Capability... elements)
Copy the current immutable object with elements that replace the content of
webDriverCapabilities. |
ImmutableWebDriverConfiguration |
withWebDriverCapabilities(Iterable<? extends Capability> elements)
Copy the current immutable object with elements that replace the content of
webDriverCapabilities. |
ImmutableWebDriverConfiguration |
withWebDriverClassName(String value)
Copy the current immutable object by setting a value for the
webDriverClassName attribute. |
public boolean isDebug()
isDebug in interface WebDriverConfigurationdebug attributepublic String getWebDriverClassName()
getWebDriverClassName in interface WebDriverConfigurationwebDriverClassName attributepublic com.google.common.collect.ImmutableList<Capability> getWebDriverCapabilities()
getWebDriverCapabilities in interface WebDriverConfigurationwebDriverCapabilities attributepublic final ImmutableWebDriverConfiguration withDebug(boolean value)
debug attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for debugthis objectpublic final ImmutableWebDriverConfiguration withWebDriverClassName(String value)
webDriverClassName attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for webDriverClassNamethis objectpublic final ImmutableWebDriverConfiguration withWebDriverCapabilities(Capability... elements)
webDriverCapabilities.elements - The elements to setthis objectpublic final ImmutableWebDriverConfiguration withWebDriverCapabilities(Iterable<? extends Capability> elements)
webDriverCapabilities.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of webDriverCapabilities elements to setthis objectpublic boolean equals(@Nullable Object another)
ImmutableWebDriverConfiguration that have equal attribute values.public int hashCode()
debug, webDriverClassName, webDriverCapabilities.public String toString()
WebDriverConfiguration with attribute values.public static ImmutableWebDriverConfiguration copyOf(WebDriverConfiguration instance)
WebDriverConfiguration value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableWebDriverConfiguration.Builder builder()
ImmutableWebDriverConfiguration.Copyright © 2010–2018 Justin Searls. All rights reserved.