public final class Tags extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Tags.Builder
A builder for
Tags objects. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getFingerprint()
Returns the fingerprint for the tags.
|
List<String> |
getValues()
Returns a list of tags to apply to an instance.
|
int |
hashCode() |
static Tags.Builder |
newBuilder(Iterable<String> values)
Returns a builder for a
Tags object given the tags to apply to the instance. |
static Tags.Builder |
newBuilder(String... values)
Returns a builder for a
Tags object given the tags to apply to the instance. |
static Tags |
of(Iterable<String> values)
Returns a
Tags object given the tags to apply to the instance. |
static Tags |
of(String... values)
Returns a
Tags object given the tags to apply to the instance. |
Tags.Builder |
toBuilder()
Returns a builder for the current instance tags.
|
String |
toString() |
public List<String> getValues()
public String getFingerprint()
public Tags.Builder toBuilder()
public static Tags.Builder newBuilder(Iterable<String> values)
Tags
object given the tags to apply to the instance. Each tag
within the list must comply with RFC1035.public static Tags.Builder newBuilder(String... values)
Tags
object given the tags to apply to the instance. Each tag
within the list must comply with RFC1035.public static Tags of(Iterable<String> values)
Tags
object given the tags to apply to the instance. Each tag within the list
must comply with RFC1035.Copyright © 2019 Google LLC. All rights reserved.