1 package com.puppycrawl.tools.checkstyle.checks.indentation.indentation;
2
3 import java.util.Map;
4 import java.util.Map.Entry;
5
6 import com.google.common.collect.Range;
7 import com.google.common.collect.RangeMap;
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 public abstract class InputIndentationFromGuava2<K extends Comparable<?>, V> {
24
25 public InputIndentationFromGuava2<K, V> subRangeMap1(final Range<K> range) {
26 Range<K> ranges = null;
27 if (checkNotNull(range).isEmpty()) {
28 } else if (ranges.isEmpty() || range.encloses(span())) {
29 return this;
30 }
31 int lowerIndex = SortedLists.binarySearch();
32 int upperIndex = SortedLists.binarySearch();
33 if (lowerIndex >= upperIndex) {
34 return null;
35 }
36 final int off = lowerIndex;
37 final int len = upperIndex - lowerIndex;
38 InputIndentationFromGuava2<K, V> outer = null;
39 return outer;
40 }
41
42 public V get(int index) {
43 K key = null;
44 int len = 0;
45 checkElementIndex(index, len);
46 int off;
47 RangeMap<K, V> ranges = null;
48 if (index == 0 || index == len - 1) {
49 Object range;
50 return ranges.get(key);
51 } else {
52 return ranges.get(key);
53 }
54 }
55
56 private void checkElementIndex(int index, Object len)
57 {
58
59 }
60
61 boolean isPartialView() {
62 return true;
63 }
64
65 private Range<K> checkNotNull(Range<K> range)
66 {
67 return null;
68 }
69
70 @Deprecated
71 public V get(K key)
72 {
73 return null;
74 }
75
76 public Range<K> span()
77 {
78 return null;
79 }
80
81 @Deprecated
82 public void put(Range<K> range, V value)
83 {
84
85 }
86
87 @Deprecated
88 public void putAll(RangeMap<K, V> rangeMap)
89 {
90
91 }
92
93 @Deprecated
94 public void clear()
95 {
96
97 }
98
99 @Deprecated
100 public void remove(Range<K> range)
101 {
102
103 }
104
105 @Deprecated
106 public Map<Range<K>, V> asMapOfRanges()
107 {
108 return null;
109 }
110
111 @Deprecated
112 public RangeMap<K, V> subRangeMap(Range<K> range)
113 {
114 return null;
115 }
116
117 @Deprecated
118 public Entry<Range<K>, V> getEntry(K key)
119 {
120 return null;
121 }
122
123 private static class SortedLists {
124 public static int binarySearch() { return 4; }
125 }
126 }