You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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){...}
0 commit comments