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.
|
private int |
id |
private String |
name |
| Modifier | Constructor and Description |
|---|---|
|
CorrelationId(int id)
Creates a correlation identifier.
|
private |
CorrelationId(int id,
String name)
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(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
private final int id
private final String name
private CorrelationId(int id,
String name)
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–2018 The Apache Software Foundation. All rights reserved.