Known Direct Subclasses
|
Class Overview
Base class for creating builders for repository
-related requests.
Summary
Public Methods |
@Nonnull
B
|
forkable(boolean value)
Sets whether the request should mark the repository forkable or not.
|
@Nonnull
B
|
name(String value)
Sets the name to be used for the request.
|
@Nonnull
B
|
publiclyAccessible(boolean value)
|
Protected Methods |
abstract
B
|
self()
Overridden in concrete builder implementations to return this .
|
[Expand]
Inherited Methods |
From class
com.atlassian.bitbucket.util.BuilderSupport
static
<T>
boolean
|
addIf(Predicate<? super T> predicate, Builder<T> builder, T value)
|
@SafeVarargs
static
<T>
void
|
addIf(Predicate<? super T> predicate, Builder<T> builder, T value, T... values)
|
static
<T>
boolean
|
addIf(Predicate<? super T> predicate, Collection<T> collection, T value)
|
static
<T>
void
|
addIf(Predicate<? super T> predicate, Builder<T> builder, Iterable<? extends T> values)
|
@SafeVarargs
static
<T>
void
|
addIf(Predicate<? super T> predicate, Collection<T> collection, T value, T... values)
|
static
<T>
void
|
addIf(Predicate<? super T> predicate, Collection<T> collection, Iterable<? extends T> values)
|
@Nonnull
static
String
|
checkNotBlank(String value, String name)
|
@Nonnull
static
String
|
requireNonBlank(String value, String name)
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Fields
protected
boolean
forkable
protected
boolean
publiclyAccessible
Protected Constructors
protected
AbstractBuilder
()
Public Methods
@Nonnull
public
B
forkable
(boolean value)
Sets whether the request should mark the repository forkable or not. If this method is not called prior to
building the request, its value defaults to true
and the repository will be forkable by default.
Parameters
value
| true to mark the repository as forkable, or false to disable forking |
@Nonnull
public
B
name
(String value)
Sets the name to be used for the request. The provided value may not be null
, empty or contain only
whitespace or an exception will be thrown.
Note: This value is required. If this method is not called prior to building the request, an
exception will be thrown.
Parameters
value
| the name for the repository |
@Nonnull
public
B
publiclyAccessible
(boolean value)
Parameters
value
| whether the repository will be publicly accessible or not. |
Protected Methods
protected
abstract
B
self
()
Overridden in concrete builder implementations to return this
.