org.gradle.api.specs.AndSpec Java Examples

The following examples show how to use org.gradle.api.specs.AndSpec. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AbstractTask.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private AndSpec<Task> createNewOnlyIfSpec() {
    return new AndSpec<Task>(new Spec<Task>() {
        public boolean isSatisfiedBy(Task element) {
            return element == AbstractTask.this && enabled;
        }
    });
}
 
Example #2
Source File: FullExceptionFormatter.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private Spec<StackTraceElement> createCompositeFilter(TestDescriptor descriptor) {
    List<Spec<StackTraceElement>> filters = Lists.newArrayList();
    for (TestStackTraceFilter type : testLogging.getStackTraceFilters()) {
        filters.add(createFilter(descriptor, type));
    }
    return new AndSpec<StackTraceElement>(filters);
}
 
Example #3
Source File: AbstractTask.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private AndSpec<Task> createNewOnlyIfSpec() {
    return new AndSpec<Task>(new Spec<Task>() {
        public boolean isSatisfiedBy(Task element) {
            return element == AbstractTask.this && enabled;
        }
    });
}
 
Example #4
Source File: FullExceptionFormatter.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private Spec<StackTraceElement> createCompositeFilter(TestDescriptor descriptor) {
    List<Spec<StackTraceElement>> filters = Lists.newArrayList();
    for (TestStackTraceFilter type : testLogging.getStackTraceFilters()) {
        filters.add(createFilter(descriptor, type));
    }
    return new AndSpec<StackTraceElement>(filters);
}
 
Example #5
Source File: AbstractTask.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private AndSpec<Task> createNewOnlyIfSpec() {
    return new AndSpec<Task>(new Spec<Task>() {
        public boolean isSatisfiedBy(Task element) {
            return element == AbstractTask.this && enabled;
        }
    });
}
 
Example #6
Source File: FullExceptionFormatter.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private Spec<StackTraceElement> createCompositeFilter(TestDescriptor descriptor) {
    List<Spec<StackTraceElement>> filters = Lists.newArrayList();
    for (TestStackTraceFilter type : testLogging.getStackTraceFilters()) {
        filters.add(createFilter(descriptor, type));
    }
    return new AndSpec<StackTraceElement>(filters);
}
 
Example #7
Source File: AbstractTask.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private AndSpec<Task> createNewOnlyIfSpec() {
    return new AndSpec<Task>(new Spec<Task>() {
        public boolean isSatisfiedBy(Task element) {
            return element == AbstractTask.this && enabled;
        }
    });
}
 
Example #8
Source File: FullExceptionFormatter.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private Spec<StackTraceElement> createCompositeFilter(TestDescriptor descriptor) {
    List<Spec<StackTraceElement>> filters = Lists.newArrayList();
    for (TestStackTraceFilter type : testLogging.getStackTraceFilters()) {
        filters.add(createFilter(descriptor, type));
    }
    return new AndSpec<StackTraceElement>(filters);
}