本文整理汇总了Java中org.apache.isis.applib.util.ObjectContracts.compare方法的典型用法代码示例。如果您正苦于以下问题:Java ObjectContracts.compare方法的具体用法?Java ObjectContracts.compare怎么用?Java ObjectContracts.compare使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.isis.applib.util.ObjectContracts
的用法示例。
在下文中一共展示了ObjectContracts.compare方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: compareTo
import org.apache.isis.applib.util.ObjectContracts; //导入方法依赖的package包/类
@Override
public int compareTo(AbstractPersistable other) {
return ObjectContracts.compare(this, other, "alphaState", "item", "sequence", "id");
// return new CompareToBuilder()
// .append(getSequence(), ((Checklist) other).getSequence() )
// .append(getClass().getName(), other.getClass().getName())
// .toComparison();
}
示例2: compareTo
import org.apache.isis.applib.util.ObjectContracts; //导入方法依赖的package包/类
@Override
public int compareTo(AbstractPersistable other) {
return ObjectContracts.compare(this, other, "alpha", "state", "sequence", "id");
}
示例3: compareTo
import org.apache.isis.applib.util.ObjectContracts; //导入方法依赖的package包/类
@Override
public int compareTo(AbstractPersistable other) {
return ObjectContracts.compare(this, other, "description", "id");
}
示例4: compareTo
import org.apache.isis.applib.util.ObjectContracts; //导入方法依赖的package包/类
@Override
public int compareTo(AbstractPersistable other) {
return ObjectContracts.compare(this, other, "alphaType", "name", "description", "id");
}
示例5: compareTo
import org.apache.isis.applib.util.ObjectContracts; //导入方法依赖的package包/类
@Override
public int compareTo(AbstractPersistable other) {
return ObjectContracts.compare(this, other, "code", "name", "description", "id");
}
示例6: compareTo
import org.apache.isis.applib.util.ObjectContracts; //导入方法依赖的package包/类
@Override
public int compareTo(AbstractPersistable other) {
return ObjectContracts.compare(this, other, "concern", "alphaType", "name", "id");
}
示例7: compareTo
import org.apache.isis.applib.util.ObjectContracts; //导入方法依赖的package包/类
@Override
public int compareTo(final SimpleObject other) {
return ObjectContracts.compare(this, other, "name");
}
示例8: compareTo
import org.apache.isis.applib.util.ObjectContracts; //导入方法依赖的package包/类
@Override
public int compareTo(final CardGame o) {
return ObjectContracts.compare(this, o, "card", "date");
}
示例9: compareTo
import org.apache.isis.applib.util.ObjectContracts; //导入方法依赖的package包/类
@Override
public int compareTo(final CardRequest other) {
return ObjectContracts.compare(this, other, "requestingUser", "issueDate", "handleDate");
}
示例10: compareTo
import org.apache.isis.applib.util.ObjectContracts; //导入方法依赖的package包/类
@Override
public int compareTo(final Card other) {
return ObjectContracts.compare(this, other, "number");
}
示例11: compareTo
import org.apache.isis.applib.util.ObjectContracts; //导入方法依赖的package包/类
@Override
public int compareTo(final Center other) {
return ObjectContracts.compare(this, other, "code", "name");
}
示例12: compareTo
import org.apache.isis.applib.util.ObjectContracts; //导入方法依赖的package包/类
@Override
public int compareTo(final User other) {
return ObjectContracts.compare(this, other, "email");
}
示例13: compareTo
import org.apache.isis.applib.util.ObjectContracts; //导入方法依赖的package包/类
@Override
public int compareTo(final ChildCare other) {
return ObjectContracts.compare(this, other, "child", "checkIn");
}
示例14: compareTo
import org.apache.isis.applib.util.ObjectContracts; //导入方法依赖的package包/类
@Override
public int compareTo(final Child other) {
return ObjectContracts.compare(this, other, "parent", "name", "birthdate");
}
示例15: compareTo
import org.apache.isis.applib.util.ObjectContracts; //导入方法依赖的package包/类
@Override
public int compareTo(final QuickObject other) {
return ObjectContracts.compare(this, other, "name");
}