Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.easycluster.easycluster.serialization.bytebean.field;
 

Author(s):
Archibald.Wang
Version:
$Id: ByteFieldDesc.java 14 2012-01-10 11:54:14Z archie $
public interface ByteFieldDesc {
	int getIndex();
	int getByteSize();
	boolean hasLength();
	int getLength(Object owner);
		public int compare(ByteFieldDesc desc1ByteFieldDesc desc2) {
			int ret = desc1.getIndex() - desc2.getIndex();
			if (0 == ret) {
				throw new RuntimeException("field1:" + desc1.getField()
"/field2:" + desc2.getField()
" has the same index value, internal error.");
			}
			return ret;
		}
	};
New to GrepCode? Check out our FAQ X