-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
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){...}
- Loading branch information
1 parent
69df4dd
commit 7c16599
Showing
2 changed files
with
165 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters