Commit 7c16599
Squashed commit of the following:
commit dad21ce
Author: Joseph Koshakow <koshy44@gmail.com>
Date: Tue Oct 3 23:24:14 2017 -0400
Added the following methods:
private int compareToUnchecked(byte[] bytes, int offset, int len){...}
private boolean contentEqualsUnchecked(byte[] bytes, int offset, int len){...}
Refactored the following methods:
public final int compareTo(Bytes other){...}
public int compareTo(byte[] bytes){...}
public int compareTo(byte[] bytes, int offset, int len){...}
public final boolean equals(Object other){...}
public boolean contentEquals(byte[] bytes){...}
public boolean contentEquals(byte[] bytes, int offset, int len){...}
Added tests to test offsets greater than 0
commit b3038dd
Author: Joseph Koshakow <koshy44@gmail.com>
Date: Mon Oct 2 23:44:33 2017 -0400
Modified precondition for contentEquals(byte[] bytes, int offset, int len){...}
commit ad5f06c
Author: Joseph Koshakow <koshy44@gmail.com>
Date: Mon Oct 2 23:37:04 2017 -0400
Added @SInCE 1.2.0 tags to new methods
Added a Precondition.checkArgument to methods that take offset and len
Added tests for different length Bytes and byte[] and empty Bytes and byte[]
Added tests for invalid arguments
commit d0033f5
Author: Joseph Koshakow <koshy44@gmail.com>
Date: Mon Oct 2 20:17:32 2017 -0400
Created the following methods and corresponding unit tests for them:
public boolean contentEquals(byte[] bytes){...}
public boolean contentEquals(byte[] bytes, int offset, int len){...}
public int compareTo(byte[] bytes){...}
public int compareTo(byte[] bytes, int offset, int len){...}
Refactored the following methods:
public final int compareTo(Bytes other){...}
public final boolean equals(Object other){...}
1 parent 69df4dd commit 7c16599
2 files changed
Lines changed: 165 additions & 16 deletions
File tree
- modules/api/src
- main/java/org/apache/fluo/api/data
- test/java/org/apache/fluo/api/data
Lines changed: 92 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
189 | 207 | | |
190 | 208 | | |
191 | 209 | | |
192 | 210 | | |
193 | 211 | | |
194 | 212 | | |
195 | 213 | | |
| 214 | + | |
196 | 215 | | |
197 | 216 | | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
204 | 254 | | |
205 | | - | |
206 | | - | |
| 255 | + | |
| 256 | + | |
207 | 257 | | |
208 | | - | |
209 | | - | |
| 258 | + | |
210 | 259 | | |
211 | 260 | | |
212 | 261 | | |
213 | 262 | | |
214 | | - | |
| 263 | + | |
215 | 264 | | |
216 | 265 | | |
217 | 266 | | |
| |||
228 | 277 | | |
229 | 278 | | |
230 | 279 | | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
| 280 | + | |
236 | 281 | | |
237 | 282 | | |
238 | 283 | | |
239 | 284 | | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
240 | 316 | | |
241 | 317 | | |
242 | 318 | | |
| |||
Lines changed: 73 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
111 | 136 | | |
112 | 137 | | |
113 | 138 | | |
| |||
118 | 143 | | |
119 | 144 | | |
120 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
121 | 194 | | |
122 | 195 | | |
123 | 196 | | |
| |||
0 commit comments