File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed
src/main/java/org/javimmutable/collections/array Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change 3737
3838import org .javimmutable .collections .Cursorable ;
3939import org .javimmutable .collections .Holder ;
40- import org .javimmutable .collections .Indexed ;
4140import org .javimmutable .collections .InvariantCheckable ;
4241import org .javimmutable .collections .JImmutableMap ;
4342import org .javimmutable .collections .SplitableIterable ;
@@ -96,31 +95,6 @@ public static <T> TrieNode<T> of()
9695 return EmptyTrieNode .instance ();
9796 }
9897
99- public static <T > TrieNode <T > fromSource (int index ,
100- Indexed <? extends T > source ,
101- int offset ,
102- int limit )
103- {
104- final int size = Math .min (32 , limit - offset );
105- if (size < 0 ) {
106- throw new IllegalArgumentException ();
107- }
108-
109- switch (size ) {
110- case 0 :
111- return of ();
112-
113- case 1 :
114- return LeafTrieNode .of (index , source .get (offset ));
115-
116- case 32 :
117- return FullBranchTrieNode .fromSource (index , source , offset );
118-
119- default :
120- return MultiBranchTrieNode .forSource (index , size , source , offset );
121- }
122- }
123-
12498 public static int shiftForIndex (int index )
12599 {
126100 switch (Integer .numberOfLeadingZeros (index )) {
You can’t perform that action at this time.
0 commit comments