public final class MeterIdPrefix extends Object
| Constructor and Description |
|---|
MeterIdPrefix(String name)
Creates a new instance with no
Tags. |
MeterIdPrefix(String name,
Iterable<Tag> tags)
Creates a new instance.
|
MeterIdPrefix(String name,
String... tags)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
MeterIdPrefix |
append(String suffix)
Returns a newly-created instance whose name is concatenated by the specified
suffix. |
MeterIdPrefix |
appendWithTags(String suffix,
Iterable<Tag> tags)
Returns a newly-created instance whose name is concatenated by the specified
suffix and
tags. |
MeterIdPrefix |
appendWithTags(String suffix,
String... tags)
Returns a newly-created instance whose name is concatenated by the specified
suffix and
tags. |
boolean |
equals(Object obj) |
int |
hashCode() |
String |
name()
Returns the name.
|
String |
name(String suffix)
Returns the name concatenated by the specified
suffix. |
List<Tag> |
tags()
Returns the
Tags. |
List<Tag> |
tags(Iterable<Tag> tags)
Returns the
Tags concatenated by the specified tags. |
List<Tag> |
tags(String... tags)
Returns the
Tags concatenated by the specified tags. |
String |
toString() |
MeterIdPrefix |
withTags(Iterable<Tag> tags)
Returns a newly-created instance whose name is concatenated by the specified
tags. |
MeterIdPrefix |
withTags(String... tags)
Returns a newly-created instance whose name is concatenated by the specified
tags. |
public MeterIdPrefix(String name)
Tags.name - the Meter namepublic String name()
public MeterIdPrefix append(String suffix)
suffix.public MeterIdPrefix appendWithTags(String suffix, String... tags)
suffix and
tags.public MeterIdPrefix appendWithTags(String suffix, Iterable<Tag> tags)
suffix and
tags.public MeterIdPrefix withTags(String... tags)
tags.public MeterIdPrefix withTags(Iterable<Tag> tags)
tags.Copyright © 2020 LeanCloud. All rights reserved.