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