]> source.dussan.org Git - jgit.git/commit
Expose AnyObjectId compareTo(byte[]) and compareTo(int[]) 17/917/4
authorShawn O. Pearce <spearce@spearce.org>
Sat, 19 Jun 2010 00:38:22 +0000 (17:38 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 23 Jun 2010 23:54:15 +0000 (16:54 -0700)
commit677b9b17e289bcce645b03986cee1e8b30f688ec
treedf466734b32b5bdf9e867958689481a0f76aa4b9
parent864cc3de10c3a1ead5eacab973759d6d58162286
Expose AnyObjectId compareTo(byte[]) and compareTo(int[])

Storage systems can use these implementations to compare a passed
AnyObjectId with a stored representation of an ObjectId in the
canonical network byte order format.  This can be useful to do a
binary search, or just linear scan, over an encoded storage file.

Change-Id: I8c72993c4f4c6e98d599ac2c9867453752f25fd2
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/lib/AnyObjectId.java