当前位置: 首页>>代码示例>>Java>>正文


Java ObjectContracts类代码示例

本文整理汇总了Java中org.apache.isis.applib.util.ObjectContracts的典型用法代码示例。如果您正苦于以下问题:Java ObjectContracts类的具体用法?Java ObjectContracts怎么用?Java ObjectContracts使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ObjectContracts类属于org.apache.isis.applib.util包,在下文中一共展示了ObjectContracts类的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();
    }
 
开发者ID:bibryam,项目名称:semat,代码行数:10,代码来源:Checklist.java

示例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");
}
 
开发者ID:bibryam,项目名称:semat,代码行数:5,代码来源:AlphaState.java

示例3: compareTo

import org.apache.isis.applib.util.ObjectContracts; //导入依赖的package包/类
@Override
public int compareTo(AbstractPersistable other) {
    return ObjectContracts.compare(this, other, "description", "id");
}
 
开发者ID:bibryam,项目名称:semat,代码行数:5,代码来源:Item.java

示例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");
}
 
开发者ID:bibryam,项目名称:semat,代码行数:5,代码来源:State.java

示例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");
}
 
开发者ID:bibryam,项目名称:semat,代码行数:5,代码来源:Project.java

示例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");
}
 
开发者ID:bibryam,项目名称:semat,代码行数:5,代码来源:Alpha.java

示例7: toString

import org.apache.isis.applib.util.ObjectContracts; //导入依赖的package包/类
@Override
public String toString() {
    return ObjectContracts.toString(this, "name");
}
 
开发者ID:Stephen-Cameron-Data-Services,项目名称:isis-agri,代码行数:5,代码来源:SimpleObject.java

示例8: compareTo

import org.apache.isis.applib.util.ObjectContracts; //导入依赖的package包/类
@Override
public int compareTo(final SimpleObject other) {
    return ObjectContracts.compare(this, other, "name");
}
 
开发者ID:Stephen-Cameron-Data-Services,项目名称:isis-agri,代码行数:5,代码来源:SimpleObject.java

示例9: compareTo

import org.apache.isis.applib.util.ObjectContracts; //导入依赖的package包/类
@Override
public int compareTo(final CardGame o) {
    return ObjectContracts.compare(this, o, "card", "date");
}
 
开发者ID:incodehq,项目名称:ecpcrm,代码行数:5,代码来源:CardGame.java

示例10: compareTo

import org.apache.isis.applib.util.ObjectContracts; //导入依赖的package包/类
@Override
public int compareTo(final CardRequest other) {
    return ObjectContracts.compare(this, other, "requestingUser", "issueDate", "handleDate");
}
 
开发者ID:incodehq,项目名称:ecpcrm,代码行数:5,代码来源:CardRequest.java

示例11: compareTo

import org.apache.isis.applib.util.ObjectContracts; //导入依赖的package包/类
@Override
public int compareTo(final Card other) {
    return ObjectContracts.compare(this, other, "number");
}
 
开发者ID:incodehq,项目名称:ecpcrm,代码行数:5,代码来源:Card.java

示例12: compareTo

import org.apache.isis.applib.util.ObjectContracts; //导入依赖的package包/类
@Override
public int compareTo(final Center other) {
    return ObjectContracts.compare(this, other, "code", "name");
}
 
开发者ID:incodehq,项目名称:ecpcrm,代码行数:5,代码来源:Center.java

示例13: compareTo

import org.apache.isis.applib.util.ObjectContracts; //导入依赖的package包/类
@Override
public int compareTo(final User other) {
    return ObjectContracts.compare(this, other, "email");
}
 
开发者ID:incodehq,项目名称:ecpcrm,代码行数:5,代码来源:User.java

示例14: compareTo

import org.apache.isis.applib.util.ObjectContracts; //导入依赖的package包/类
@Override
public int compareTo(final ChildCare other) {
    return ObjectContracts.compare(this, other, "child", "checkIn");
}
 
开发者ID:incodehq,项目名称:ecpcrm,代码行数:5,代码来源:ChildCare.java

示例15: compareTo

import org.apache.isis.applib.util.ObjectContracts; //导入依赖的package包/类
@Override
public int compareTo(final Child other) {
    return ObjectContracts.compare(this, other, "parent", "name", "birthdate");
}
 
开发者ID:incodehq,项目名称:ecpcrm,代码行数:5,代码来源:Child.java


注:本文中的org.apache.isis.applib.util.ObjectContracts类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。