public final class NodeDistributionKey extends Object implements Comparable<NodeDistributionKey>
| Constructor and Description | 
|---|
NodeDistributionKey()
Initializes a new instance of the NodeDistributionKey class with defaults. 
 | 
NodeDistributionKey(int order)
Initializes a new instance of a NodeDistributionKey. 
 | 
NodeDistributionKey(int order,
                   Node relatedNode)
Initializes a new instance of a  
NodeDistributionKey. | 
NodeDistributionKey(Node relatedNode)
Initializes a new instance of a  
NodeDistributionKey. | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
compareTo(NodeDistributionKey other) | 
boolean | 
equals(NodeDistributionKey other)
Indicates whether the current object is equal to another object of the same type. 
 | 
boolean | 
equals(Object obj) | 
static NodeDistributionKey | 
getDefault()
Gets a default instance, which is equivalent to constructing a new instance with the default constructor. 
 | 
int | 
getOrder()
Gets the temporal order of the related node distribution. 
 | 
Node | 
getRelatedNode()
Gets the parent of the noisy node this distribution refers to, or the noisy node itself to identify the leak distribution. 
 | 
int | 
hashCode() | 
public NodeDistributionKey()
public NodeDistributionKey(int order)
order - The temporal order of the node distribution.public NodeDistributionKey(Node relatedNode)
NodeDistributionKey.relatedNode - The parent of the noisy node this distribution refers to, or the noisy node itself to identify the leak distribution.  This will be null, unless the node is a noisy node.public NodeDistributionKey(int order,
                           Node relatedNode)
NodeDistributionKey.order - The temporal order of the related node distribution.relatedNode - The parent of the noisy node this distribution refers to, or the noisy node itself to identify the leak distribution.  This will be null, unless the node is a noisy node.public static NodeDistributionKey getDefault()
public int getOrder()
public Node getRelatedNode()
public boolean equals(NodeDistributionKey other)
other - An object to compare with this object.public int compareTo(NodeDistributionKey other)
compareTo in interface Comparable<NodeDistributionKey>Copyright © 2021. All rights reserved.