本文整理匯總了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();
}