public class ImmutableSwitchElement extends java.lang.Object implements SwitchElement
| Constructor and Description |
|---|
ImmutableSwitchElement(int key,
int offset) |
| Modifier and Type | Method and Description |
|---|---|
int |
getKey() |
int |
getOffset() |
static com.google.common.collect.ImmutableList<ImmutableSwitchElement> |
immutableListOf(java.util.List<? extends SwitchElement> list) |
static ImmutableSwitchElement |
of(SwitchElement switchElement) |
@Nonnull public static ImmutableSwitchElement of(SwitchElement switchElement)
public int getKey()
getKey in interface SwitchElementpublic int getOffset()
getOffset in interface SwitchElement@Nonnull public static com.google.common.collect.ImmutableList<ImmutableSwitchElement> immutableListOf(@Nullable java.util.List<? extends SwitchElement> list)