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 InputIndentationFromGuava3<K extends Comparable<?>, V> {
24
25 public InputIndentationFromGuava3<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 InputIndentationFromGuava3<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 private Range<K> checkNotNull(Range<K> range)
62 {
63 return null;
64 }
65
66 @Deprecated
67 public V get(K key)
68 {
69 return null;
70 }
71
72 public Range<K> span()
73 {
74 return null;
75 }
76
77 @Deprecated
78 public void put(Range<K> range, V value)
79 {
80
81 }
82
83 @Deprecated
84 public void putAll(RangeMap<K, V> rangeMap)
85 {
86
87 }
88
89 @Deprecated
90 public void remove(Range<K> range)
91 {
92
93 }
94
95 @Deprecated
96 public Map<Range<K>, V> asMapOfRanges()
97 {
98 return null;
99 }
100
101 @Deprecated
102 public RangeMap<K, V> subRangeMap(Range<K> range)
103 {
104 return null;
105 }
106
107 @Deprecated
108 public Entry<Range<K>, V> getEntry(K key)
109 {
110 return null;
111 }
112
113 private static class SortedLists {
114 public static int binarySearch() { return 4; }
115 }
116 }