public class CorrelationId extends Object implements Cloneable, Comparable<CorrelationId>
| Modifier and Type | Field and Description |
|---|---|
static String |
CORREL_PREFIX
Prefix to the name of correlating variables.
|
| Constructor and Description |
|---|
CorrelationId(int id)
Creates a correlation identifier.
|
CorrelationId(String name)
Creates a correlation identifier from a name.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(CorrelationId other) |
boolean |
equals(@Nullable Object obj) |
int |
getId()
Returns the identifier.
|
String |
getName()
Returns the preferred name of the variable.
|
int |
hashCode() |
static Set<String> |
names(Set<CorrelationId> set)
Converts a set of names to a set of correlation ids.
|
static com.google.common.collect.ImmutableSet<CorrelationId> |
setOf(Set<String> set)
Converts a set of correlation ids to a set of names.
|
String |
toString() |
public static final String CORREL_PREFIX
public CorrelationId(int id)
id - Identifierpublic CorrelationId(String name)
name - variable namepublic int getId()
public String getName()
public int compareTo(CorrelationId other)
compareTo in interface Comparable<CorrelationId>public static com.google.common.collect.ImmutableSet<CorrelationId> setOf(Set<String> set)
public static Set<String> names(Set<CorrelationId> set)
Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.