Konsola git

IndexableBuilder

public abstract class IndexableBuilder extends Object
Known Direct Subclasses

The basic abstract builder to construct an Indexable.

Protected Constructor Summary

IndexableBuilder(String type)
Builder for a basic Indexable.

Public Method Summary

final Indexable
build()
Finalize building the object.
T
put(String key, boolean... values)
Sets one or multiple boolean values for a property, replacing its previous values.
T
put(String key, Indexable... values)
Sets one or multiple Indexable values for a property, replacing its previous values.
T
put(String key, String... values)
Sets one or multiple string values for a property, replacing its previous values.
T
put(String key, long... values)
Sets one or multiple long values for a property, replacing its previous values.
final T
setDescription(String description)
Sets the optional description of the content.
final T
setImage(String url)
Sets the image of the content.
final T
setKeywords(String... keywords)
Sets the keywords of the Indexable.
T
setMetadata(Indexable.Metadata.Builder metadataBuilder)
Sets the metadata.
final T
setName(String name)
Sets the name of the content, must not be null.
final T
setSameAs(String webUrl)
Sets the corresponding web URL.
final T
setUrl(String url)
Sets the URL.

Protected Method Summary

<S extends IndexableBuilder> T
put(String key, S... values)
Sets one or multiple Indexable values for a property.

Inherited Method Summary

Protected Constructors

protected IndexableBuilder (String type)

Builder for a basic Indexable.

Parameters
type The schema.org type of the Indexable, must not be null or empty.

Public Methods

public final Indexable build ()

Finalize building the object. The Indexable being returned can be put into the index via the FirebaseAppIndex interface.

public T put (String key, boolean... values)

Sets one or multiple boolean values for a property, replacing its previous values.

Parameters
key The schema.org property. Must not be null.
values The boolean values of the schema.org property.

public T put (String key, Indexable... values)

Sets one or multiple Indexable values for a property, replacing its previous values.

Parameters
key The schema.org property. Must not be null.
values The values represented as an Indexable. Null values are ignored. Indexables must be constructed using Indexable.Builder or convenience methods.
Throws