summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Grand <christophe@cgrand.net>2009-08-10 18:44:06 +0200
committerRich Hickey <richhickey@gmail.com>2009-08-26 12:02:56 -0400
commitd8ab4c4606b2f2229ee27a7942a0eccc967e3a9c (patch)
tree1f9295efbe359a8dd7e0db96775586db162a03cd
parente8fc494908acccdd0afd59b7678957b9d27afd68 (diff)
made helper methods private
Signed-off-by: Rich Hickey <richhickey@gmail.com>
-rw-r--r--src/jvm/clojure/lang/PersistentHashMap2.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/jvm/clojure/lang/PersistentHashMap2.java b/src/jvm/clojure/lang/PersistentHashMap2.java
index 2d041a53..3d38469a 100644
--- a/src/jvm/clojure/lang/PersistentHashMap2.java
+++ b/src/jvm/clojure/lang/PersistentHashMap2.java
@@ -375,13 +375,13 @@ final static class ArrayNode implements INode{
return Seq.create(array);
}
- ArrayNode ensureEditable(AtomicReference<Thread> edit){
+ private ArrayNode ensureEditable(AtomicReference<Thread> edit){
if(this.edit == edit)
return this;
return new ArrayNode(edit, count, this.array.clone());
}
- ArrayNode editAndSet(AtomicReference<Thread> edit, int i, INode n){
+ private ArrayNode editAndSet(AtomicReference<Thread> edit, int i, INode n){
ArrayNode editable = ensureEditable(edit);
editable.array[i] = n;
return editable;
@@ -600,7 +600,7 @@ final static class BitmapIndexedNode implements INode{
return NodeSeq.create(array);
}
- BitmapIndexedNode ensureEditable(AtomicReference<Thread> edit){
+ private BitmapIndexedNode ensureEditable(AtomicReference<Thread> edit){
if(this.edit == edit)
return this;
int n = Integer.bitCount(bitmap);
@@ -609,20 +609,20 @@ final static class BitmapIndexedNode implements INode{
return new BitmapIndexedNode(edit, bitmap, newArray);
}
- BitmapIndexedNode editAndSet(AtomicReference<Thread> edit, int i, Object a) {
+ private BitmapIndexedNode editAndSet(AtomicReference<Thread> edit, int i, Object a) {
BitmapIndexedNode editable = ensureEditable(edit);
editable.array[i] = a;
return editable;
}
- BitmapIndexedNode editAndSet(AtomicReference<Thread> edit, int i, Object a, int j, Object b) {
+ private BitmapIndexedNode editAndSet(AtomicReference<Thread> edit, int i, Object a, int j, Object b) {
BitmapIndexedNode editable = ensureEditable(edit);
editable.array[i] = a;
editable.array[j] = b;
return editable;
}
- BitmapIndexedNode editAndRemovePair(AtomicReference<Thread> edit, int bit, int i) {
+ private BitmapIndexedNode editAndRemovePair(AtomicReference<Thread> edit, int bit, int i) {
if (bitmap == bit)
return null;
BitmapIndexedNode editable = ensureEditable(edit);
@@ -792,13 +792,13 @@ final static class HashCollisionNode implements INode{
return -1;
}
- HashCollisionNode ensureEditable(AtomicReference<Thread> edit){
+ private HashCollisionNode ensureEditable(AtomicReference<Thread> edit){
if(this.edit == edit)
return this;
return new HashCollisionNode(edit, count, hash, array);
}
- HashCollisionNode ensureEditable(AtomicReference<Thread> edit, int count, Object[] array){
+ private HashCollisionNode ensureEditable(AtomicReference<Thread> edit, int count, Object[] array){
if(this.edit == edit) {
this.array = array;
return this;
@@ -806,13 +806,13 @@ final static class HashCollisionNode implements INode{
return new HashCollisionNode(edit, count, hash, array);
}
- HashCollisionNode editAndSet(AtomicReference<Thread> edit, int i, Object a) {
+ private HashCollisionNode editAndSet(AtomicReference<Thread> edit, int i, Object a) {
HashCollisionNode editable = ensureEditable(edit);
editable.array[i] = a;
return editable;
}
- HashCollisionNode editAndSet(AtomicReference<Thread> edit, int i, Object a, int j, Object b) {
+ private HashCollisionNode editAndSet(AtomicReference<Thread> edit, int i, Object a, int j, Object b) {
HashCollisionNode editable = ensureEditable(edit);
editable.array[i] = a;
editable.array[j] = b;