public static enum HotkeysArgs.Metric extends Enum<HotkeysArgs.Metric>
| Modifier and Type | Method and Description |
|---|---|
CommandKeyword |
getKeyword()
Returns the protocol keyword for this metric.
|
static HotkeysArgs.Metric |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HotkeysArgs.Metric[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HotkeysArgs.Metric CPU
public static final HotkeysArgs.Metric NET
public static HotkeysArgs.Metric[] values()
for (HotkeysArgs.Metric c : HotkeysArgs.Metric.values()) System.out.println(c);
public static HotkeysArgs.Metric valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic CommandKeyword getKeyword()
CommandKeyword for this metric.Copyright © 2026 lettuce.io. All rights reserved.