本文整理汇总了Java中com.google.common.primitives.Shorts.compare方法的典型用法代码示例。如果您正苦于以下问题:Java Shorts.compare方法的具体用法?Java Shorts.compare怎么用?Java Shorts.compare使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.google.common.primitives.Shorts
的用法示例。
在下文中一共展示了Shorts.compare方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: compare
import com.google.common.primitives.Shorts; //导入方法依赖的package包/类
@Override
public int compare(IVisualElement left, IVisualElement right) {
if (backToFront) {
return Shorts.compare(right.getZ(), left.getZ());
} else {
return Shorts.compare(left.getZ(), right.getZ());
}
}
示例2: compareTo
import com.google.common.primitives.Shorts; //导入方法依赖的package包/类
@Override
public int compareTo(@Nonnull EncodedValue o) {
int res = Ints.compare(getValueType(), o.getValueType());
if (res != 0) return res;
return Shorts.compare(getValue(), ((ShortEncodedValue)o).getValue());
}
示例3: compareTo
import com.google.common.primitives.Shorts; //导入方法依赖的package包/类
@Override
public int compareTo( EncodedValue o) {
int res = Ints.compare(getValueType(), o.getValueType());
if (res != 0) return res;
return Shorts.compare(getValue(), ((ShortEncodedValue)o).getValue());
}
示例4: compareTo
import com.google.common.primitives.Shorts; //导入方法依赖的package包/类
@Override
public int compareTo(@Nonnull EncodedValue o) {
int res = Ints.compare(getValueType(), o.getValueType());
if (res != 0) return res;
return Shorts.compare(getValue(), ((ShortEncodedValue) o).getValue());
}
示例5: compareTo
import com.google.common.primitives.Shorts; //导入方法依赖的package包/类
@Override
public int compareTo(TableId other) {
return Shorts.compare(this.id, other.id);
}
示例6: compareTo
import com.google.common.primitives.Shorts; //导入方法依赖的package包/类
@Override
public int compareTo(ICMPv4Type o) {
return Shorts.compare(type, o.type);
}
示例7: compareTo
import com.google.common.primitives.Shorts; //导入方法依赖的package包/类
@Override
public int compareTo(OFVlanVidMatch o) {
return Shorts.compare(vid, o.vid);
}
示例8: compareTo
import com.google.common.primitives.Shorts; //导入方法依赖的package包/类
@Override
public int compareTo(ICMPv4Code o) {
return Shorts.compare(code, o.code);
}
示例9: compareTo
import com.google.common.primitives.Shorts; //导入方法依赖的package包/类
@Override
public int compareTo(IpProtocol o) {
return Shorts.compare(proto, o.proto);
}
示例10: compareTo
import com.google.common.primitives.Shorts; //导入方法依赖的package包/类
@Override
public int compareTo(VlanVid o) {
return Shorts.compare(vid, o.vid);
}
示例11: compareTo
import com.google.common.primitives.Shorts; //导入方法依赖的package包/类
@Override
public int compareTo(OduSigtype o) {
return Shorts.compare(sigtype, o.sigtype);
}
示例12: compareTo
import com.google.common.primitives.Shorts; //导入方法依赖的package包/类
@Override
public int compareTo(OFAuxId other) {
return Shorts.compare(this.id, other.id);
}
示例13: compareTo
import com.google.common.primitives.Shorts; //导入方法依赖的package包/类
@Override
public int compareTo(ContainerAndLastSetBit o) {
return Shorts.compare(key, o.key);
}