當前位置: 首頁>>代碼示例>>Java>>正文


Java AndPredicate類代碼示例

本文整理匯總了Java中com.oracle.java.testlibrary.cli.predicate.AndPredicate的典型用法代碼示例。如果您正苦於以下問題:Java AndPredicate類的具體用法?Java AndPredicate怎麽用?Java AndPredicate使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


AndPredicate類屬於com.oracle.java.testlibrary.cli.predicate包,在下文中一共展示了AndPredicate類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: TestUseRTMForStackLocksOptionOnUnsupportedConfig

import com.oracle.java.testlibrary.cli.predicate.AndPredicate; //導入依賴的package包/類
private TestUseRTMForStackLocksOptionOnUnsupportedConfig() {
    super(new NotPredicate(new AndPredicate(new SupportedCPU(),
                    new SupportedVM())),
            "UseRTMForStackLocks", true, true,
            TestUseRTMForStackLocksOptionOnUnsupportedConfig.DEFAULT_VALUE,
            "true");
}
 
開發者ID:ojdkbuild,項目名稱:lookaside_java-1.8.0-openjdk,代碼行數:8,代碼來源:TestUseRTMForStackLocksOptionOnUnsupportedConfig.java

示例2: TestRTMTotalCountIncrRateOptionOnUnsupportedConfig

import com.oracle.java.testlibrary.cli.predicate.AndPredicate; //導入依賴的package包/類
private TestRTMTotalCountIncrRateOptionOnUnsupportedConfig() {
    super(new NotPredicate(new AndPredicate(new SupportedCPU(),
                    new SupportedVM())),
            "RTMTotalCountIncrRate", false, true,
            TestRTMTotalCountIncrRateOptionOnUnsupportedConfig
                    .DEFAULT_VALUE,
            "-1", "0", "42", "128");
}
 
開發者ID:ojdkbuild,項目名稱:lookaside_java-1.8.0-openjdk,代碼行數:9,代碼來源:TestRTMTotalCountIncrRateOptionOnUnsupportedConfig.java

示例3: TestRTMAbortRatioOptionOnUnsupportedConfig

import com.oracle.java.testlibrary.cli.predicate.AndPredicate; //導入依賴的package包/類
private TestRTMAbortRatioOptionOnUnsupportedConfig() {
    super(new NotPredicate(new AndPredicate(new SupportedVM(),
                    new SupportedCPU())),
            "RTMAbortRatio", false, true,
            TestRTMAbortRatioOptionOnUnsupportedConfig.DEFAULT_VALUE,
            "0", "10", "100", "200");
}
 
開發者ID:ojdkbuild,項目名稱:lookaside_java-1.8.0-openjdk,代碼行數:8,代碼來源:TestRTMAbortRatioOptionOnUnsupportedConfig.java

示例4: UseSHASpecificTestCaseForSupportedSparcCPU

import com.oracle.java.testlibrary.cli.predicate.AndPredicate; //導入依賴的package包/類
public UseSHASpecificTestCaseForSupportedSparcCPU(String optionName) {
    super(SHAOptionsBase.USE_SHA_OPTION, new AndPredicate(Platform::isSparc,
            IntrinsicPredicates.ANY_SHA_INSTRUCTION_AVAILABLE));

    Asserts.assertEQ(optionName, SHAOptionsBase.USE_SHA_OPTION,
            "Test case should be used for " + SHAOptionsBase.USE_SHA_OPTION
                    + " option only.");
}
 
開發者ID:ojdkbuild,項目名稱:lookaside_java-1.8.0-openjdk,代碼行數:9,代碼來源:UseSHASpecificTestCaseForSupportedSparcCPU.java

示例5: UseSHAIntrinsicsSpecificTestCaseForUnsupportedSparcCPU

import com.oracle.java.testlibrary.cli.predicate.AndPredicate; //導入依賴的package包/類
public UseSHAIntrinsicsSpecificTestCaseForUnsupportedSparcCPU(
        String optionName) {
    // execute test case on SPARC CPU that support any sha* instructions,
    // but does not support sha* instruction required by the tested option.
    super(optionName, new AndPredicate(Platform::isSparc,
            new AndPredicate(
                    IntrinsicPredicates.ANY_SHA_INSTRUCTION_AVAILABLE,
                    new NotPredicate(SHAOptionsBase.getPredicateForOption(
                            optionName)))));
}
 
開發者ID:ojdkbuild,項目名稱:lookaside_java-1.8.0-openjdk,代碼行數:11,代碼來源:UseSHAIntrinsicsSpecificTestCaseForUnsupportedSparcCPU.java

示例6: UseSHASpecificTestCaseForUnsupportedSparcCPU

import com.oracle.java.testlibrary.cli.predicate.AndPredicate; //導入依賴的package包/類
public UseSHASpecificTestCaseForUnsupportedSparcCPU(String optionName) {
    super(SHAOptionsBase.USE_SHA_OPTION, new AndPredicate(Platform::isSparc,
            new NotPredicate(
                    IntrinsicPredicates.ANY_SHA_INSTRUCTION_AVAILABLE)));

    Asserts.assertEQ(optionName, SHAOptionsBase.USE_SHA_OPTION,
            "Test case should be used for " + SHAOptionsBase.USE_SHA_OPTION
                    + " option only.");
}
 
開發者ID:ojdkbuild,項目名稱:lookaside_java-1.8.0-openjdk,代碼行數:10,代碼來源:UseSHASpecificTestCaseForUnsupportedSparcCPU.java

示例7: TestPrintPreciseRTMLockingStatistics

import com.oracle.java.testlibrary.cli.predicate.AndPredicate; //導入依賴的package包/類
private TestPrintPreciseRTMLockingStatistics() {
    super(new AndPredicate(new SupportedCPU(), new SupportedVM()));
}
 
開發者ID:ojdkbuild,項目名稱:lookaside_java-1.8.0-openjdk,代碼行數:4,代碼來源:TestPrintPreciseRTMLockingStatistics.java

示例8: TestUseRTMLockElidingOption

import com.oracle.java.testlibrary.cli.predicate.AndPredicate; //導入依賴的package包/類
private TestUseRTMLockElidingOption() {
    super(new AndPredicate(new SupportedCPU(), new SupportedVM()));
}
 
開發者ID:ojdkbuild,項目名稱:lookaside_java-1.8.0-openjdk,代碼行數:4,代碼來源:TestUseRTMLockElidingOption.java

示例9: TestNoRTMLockElidingOption

import com.oracle.java.testlibrary.cli.predicate.AndPredicate; //導入依賴的package包/類
private TestNoRTMLockElidingOption() {
    super(new AndPredicate(new SupportedCPU(), new SupportedVM()));
}
 
開發者ID:ojdkbuild,項目名稱:lookaside_java-1.8.0-openjdk,代碼行數:4,代碼來源:TestNoRTMLockElidingOption.java

示例10: TestRTMAfterNonRTMDeopt

import com.oracle.java.testlibrary.cli.predicate.AndPredicate; //導入依賴的package包/類
private TestRTMAfterNonRTMDeopt() {
    super(new AndPredicate(new SupportedCPU(), new SupportedVM()));
}
 
開發者ID:ojdkbuild,項目名稱:lookaside_java-1.8.0-openjdk,代碼行數:4,代碼來源:TestRTMAfterNonRTMDeopt.java

示例11: TestRTMRetryCount

import com.oracle.java.testlibrary.cli.predicate.AndPredicate; //導入依賴的package包/類
private TestRTMRetryCount() {
    super(new AndPredicate(new SupportedCPU(), new SupportedVM()));
}
 
開發者ID:ojdkbuild,項目名稱:lookaside_java-1.8.0-openjdk,代碼行數:4,代碼來源:TestRTMRetryCount.java

示例12: TestRTMAbortRatio

import com.oracle.java.testlibrary.cli.predicate.AndPredicate; //導入依賴的package包/類
private TestRTMAbortRatio() {
    super(new AndPredicate(new SupportedCPU(), new SupportedVM()));
}
 
開發者ID:ojdkbuild,項目名稱:lookaside_java-1.8.0-openjdk,代碼行數:4,代碼來源:TestRTMAbortRatio.java

示例13: TestRTMSpinLoopCount

import com.oracle.java.testlibrary.cli.predicate.AndPredicate; //導入依賴的package包/類
private TestRTMSpinLoopCount() {
    super(new AndPredicate(new SupportedVM(), new SupportedCPU()));
}
 
開發者ID:ojdkbuild,項目名稱:lookaside_java-1.8.0-openjdk,代碼行數:4,代碼來源:TestRTMSpinLoopCount.java

示例14: TestRTMAbortThreshold

import com.oracle.java.testlibrary.cli.predicate.AndPredicate; //導入依賴的package包/類
private TestRTMAbortThreshold() {
    super(new AndPredicate(new SupportedCPU(), new SupportedVM()));
}
 
開發者ID:ojdkbuild,項目名稱:lookaside_java-1.8.0-openjdk,代碼行數:4,代碼來源:TestRTMAbortThreshold.java

示例15: TestRTMDeoptOnHighAbortRatio

import com.oracle.java.testlibrary.cli.predicate.AndPredicate; //導入依賴的package包/類
private TestRTMDeoptOnHighAbortRatio() {
    super(new AndPredicate(new SupportedCPU(), new SupportedVM()));
}
 
開發者ID:ojdkbuild,項目名稱:lookaside_java-1.8.0-openjdk,代碼行數:4,代碼來源:TestRTMDeoptOnHighAbortRatio.java


注:本文中的com.oracle.java.testlibrary.cli.predicate.AndPredicate類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。