本文整理汇总了Java中mesquite.lib.CompatibilityTest类的典型用法代码示例。如果您正苦于以下问题:Java CompatibilityTest类的具体用法?Java CompatibilityTest怎么用?Java CompatibilityTest使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CompatibilityTest类属于mesquite.lib包,在下文中一共展示了CompatibilityTest类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: isCompatible
import mesquite.lib.CompatibilityTest; //导入依赖的package包/类
public boolean isCompatible(Object obj, MesquiteProject project, EmployerEmployee prospectiveEmployer){
if (obj == null)
return true;
if (obj instanceof RequiresExactlyMeristicData)
return true;
if (obj instanceof CompatibilityTest)
return false;
if (!(obj instanceof Class))
return true;
if (!CharacterState.class.isAssignableFrom((Class)obj) && !CharacterData.class.isAssignableFrom((Class)obj))
return true;
return (MeristicState.class == obj) || MeristicState.class == obj;
}
示例2: isCompatible
import mesquite.lib.CompatibilityTest; //导入依赖的package包/类
public boolean isCompatible(Object obj, MesquiteProject project, EmployerEmployee prospectiveEmployer){
if (obj == null)
return true;
if (obj instanceof RequiresExactlyMeristicData)
return true;
if (obj instanceof CompatibilityTest)
return false;
if (!(obj instanceof Class))
return true;
if (!CharacterState.class.isAssignableFrom((Class)obj) && !CharacterData.class.isAssignableFrom((Class)obj))
return true;
return (MeristicState.class.isAssignableFrom((Class)obj) || MeristicState.class.isAssignableFrom((Class)obj));
}
示例3: getCompatibilityTest
import mesquite.lib.CompatibilityTest; //导入依赖的package包/类
/** Returns CompatibilityTest so other modules know if this is compatible with some object. */
public CompatibilityTest getCompatibilityTest(){
return new RequiresAnyMeristicData();
}
示例4: getCompatibilityTest
import mesquite.lib.CompatibilityTest; //导入依赖的package包/类
/** Returns CompatibilityTest so other modules know if this is compatible with some object. */
public CompatibilityTest getCompatibilityTest(){return new PIFD();}
示例5: getCompatibilityTest
import mesquite.lib.CompatibilityTest; //导入依赖的package包/类
/** Returns CompatibilityTest so other modules know if this is compatible with some object. */
public CompatibilityTest getCompatibilityTest(){return new AUI();}
示例6: getCompatibilityTest
import mesquite.lib.CompatibilityTest; //导入依赖的package包/类
/** Returns CompatibilityTest so other modules know if this is compatible with some object. */
public CompatibilityTest getCompatibilityTest(){return new DAFD();}
示例7: getCompatibilityTest
import mesquite.lib.CompatibilityTest; //导入依赖的package包/类
public CompatibilityTest getCompatibilityTest(){
return new RequiresAnyDNAData();
}