public static final class ReferrerCounts.MutableReferrerCounts extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
ReferrerCounts.MutableReferrerCounts(ReferrerCounts counts) |
| Modifier and Type | Method and Description |
|---|---|
ReferrerCounts.MutableReferrerCounts |
addStrong(NodeKey key,
int increment)
Add the specified number of strong reference counts for the given key.
|
ReferrerCounts.MutableReferrerCounts |
addWeak(NodeKey key,
int increment)
Add the specified number of weak reference counts for the given key.
|
ReferrerCounts |
freeze()
Freeze this mutable object and create a new immutable
ReferrerCounts. |
protected ReferrerCounts.MutableReferrerCounts(ReferrerCounts counts)
public ReferrerCounts.MutableReferrerCounts addStrong(NodeKey key, int increment)
key - the referring node keyincrement - the number to increase; may be negative to decreasepublic ReferrerCounts.MutableReferrerCounts addWeak(NodeKey key, int increment)
key - the referring node keyincrement - the number to increase; may be negative to decreasepublic ReferrerCounts freeze()
ReferrerCounts.Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.