org.javimmutable.collections.array.trie32
Class EmptyTrieNode<T>

java.lang.Object
  extended by org.javimmutable.collections.array.trie32.TrieNode<T>
      extended by org.javimmutable.collections.array.trie32.EmptyTrieNode<T>

@Immutable
public class EmptyTrieNode<T>
extends TrieNode<T>


Field Summary
 
Fields inherited from class org.javimmutable.collections.array.trie32.TrieNode
ROOT_SHIFT
 
Constructor Summary
EmptyTrieNode()
           
 
Method Summary
 Cursor<JImmutableMap.Entry<Integer,T>> anyOrderEntryCursor()
           
<K,V> Cursor<JImmutableMap.Entry<K,V>>
anyOrderEntryCursor(Transforms<T,K,V> transforms)
           
 Cursor<T> anyOrderValueCursor()
           
<K,V> TrieNode<T>
assign(int shift, int index, K key, V value, Transforms<T,K,V> transforms, MutableDelta sizeDelta)
           
 TrieNode<T> assign(int shift, int index, T value, MutableDelta sizeDelta)
           
<K,V> TrieNode<T>
delete(int shift, int index, K key, Transforms<T,K,V> transforms, MutableDelta sizeDelta)
           
 TrieNode<T> delete(int shift, int index, MutableDelta sizeDelta)
           
 Holder<T> find(int shift, int index)
           
<K,V> Holder<V>
find(int shift, int index, K key, Transforms<T,K,V> transforms)
           
 int getShift()
           
<K,V> V
getValueOr(int shift, int index, K key, Transforms<T,K,V> transforms, V defaultValue)
           
 T getValueOr(int shift, int index, T defaultValue)
           
 boolean isEmpty()
           
 boolean isLeaf()
           
 TrieNode<T> paddedToMinimumDepthForShift(int shift)
           
 
Methods inherited from class org.javimmutable.collections.array.trie32.TrieNode
fromSource, of, shiftForIndex, signedOrderEntryCursor, signedOrderEntryCursor, signedOrderValueCursor, trimmedToMinimumDepth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyTrieNode

public EmptyTrieNode()
Method Detail

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in class TrieNode<T>

getValueOr

public T getValueOr(int shift,
                    int index,
                    T defaultValue)
Specified by:
getValueOr in class TrieNode<T>

getValueOr

public <K,V> V getValueOr(int shift,
                          int index,
                          K key,
                          Transforms<T,K,V> transforms,
                          V defaultValue)
Specified by:
getValueOr in class TrieNode<T>

find

public Holder<T> find(int shift,
                      int index)
Specified by:
find in class TrieNode<T>

find

public <K,V> Holder<V> find(int shift,
                            int index,
                            K key,
                            Transforms<T,K,V> transforms)
Specified by:
find in class TrieNode<T>

assign

public TrieNode<T> assign(int shift,
                          int index,
                          T value,
                          MutableDelta sizeDelta)
Specified by:
assign in class TrieNode<T>

assign

public <K,V> TrieNode<T> assign(int shift,
                                int index,
                                K key,
                                V value,
                                Transforms<T,K,V> transforms,
                                MutableDelta sizeDelta)
Specified by:
assign in class TrieNode<T>

delete

public TrieNode<T> delete(int shift,
                          int index,
                          MutableDelta sizeDelta)
Specified by:
delete in class TrieNode<T>

delete

public <K,V> TrieNode<T> delete(int shift,
                                int index,
                                K key,
                                Transforms<T,K,V> transforms,
                                MutableDelta sizeDelta)
Specified by:
delete in class TrieNode<T>

getShift

public int getShift()
Specified by:
getShift in class TrieNode<T>

isLeaf

public boolean isLeaf()
Specified by:
isLeaf in class TrieNode<T>

paddedToMinimumDepthForShift

public TrieNode<T> paddedToMinimumDepthForShift(int shift)
Overrides:
paddedToMinimumDepthForShift in class TrieNode<T>

anyOrderEntryCursor

public Cursor<JImmutableMap.Entry<Integer,T>> anyOrderEntryCursor()
Specified by:
anyOrderEntryCursor in class TrieNode<T>

anyOrderEntryCursor

public <K,V> Cursor<JImmutableMap.Entry<K,V>> anyOrderEntryCursor(Transforms<T,K,V> transforms)
Specified by:
anyOrderEntryCursor in class TrieNode<T>

anyOrderValueCursor

public Cursor<T> anyOrderValueCursor()
Specified by:
anyOrderValueCursor in class TrieNode<T>


Copyright © 2014 Burton Computer Corporation. All rights reserved.