org.gradle.api.DomainObjectCollection Java Examples
The following examples show how to use
org.gradle.api.DomainObjectCollection.
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: WarOverlayPluginTest.java From gradle-plugins with MIT License | 5 votes |
@Test public void testProperties() { Project project = ProjectBuilder.builder().build(); project.getPlugins().apply(WarPlugin.class); project.getPlugins().apply(WarOverlayPlugin.class); Task warTask = project.getTasks().getByName(WarPlugin.WAR_TASK_NAME); assertThat(warTask.hasProperty("overlays")).isTrue(); assertThat(warTask.property("overlays")).isInstanceOf(DomainObjectCollection.class); }
Example #2
Source File: CompositeDomainObjectSet.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public void removeCollection(DomainObjectCollection<? extends T> collection) { getStore().removeComposited(collection); Action<? super T> action = getEventRegister().getRemoveAction(); for (T item : collection) { action.execute(item); } }
Example #3
Source File: CompositeDomainObjectSet.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public void addCollection(DomainObjectCollection<? extends T> collection) { if (!getStore().getCollections().contains(collection)) { getStore().addComposited(collection); collection.all(getEventRegister().getAddAction()); collection.whenObjectRemoved(getEventRegister().getRemoveAction()); } }
Example #4
Source File: CompositeDomainObjectSet.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public void removeCollection(DomainObjectCollection<? extends T> collection) { getStore().removeComposited(collection); Action<? super T> action = getEventRegister().getRemoveAction(); for (T item : collection) { action.execute(item); } }
Example #5
Source File: CompositeDomainObjectSet.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public CompositeDomainObjectSet<T> addCollection(DomainObjectCollection<? extends T> collection) { if (!getStore().getCollections().contains(collection)) { getStore().addComposited(collection); collection.all(getEventRegister().getAddAction()); collection.whenObjectRemoved(getEventRegister().getRemoveAction()); } return this; }
Example #6
Source File: WarOverlayPluginTest.java From gradle-plugins with MIT License | 5 votes |
@Test public void testProperties() { Project project = ProjectBuilder.builder().build(); project.getPlugins().apply(WarPlugin.class); project.getPlugins().apply(WarOverlayPlugin.class); Task warTask = project.getTasks().getByName(WarPlugin.WAR_TASK_NAME); assertThat(warTask.hasProperty("overlays")).isTrue(); assertThat(warTask.property("overlays")).isInstanceOf(DomainObjectCollection.class); }
Example #7
Source File: CompositeDomainObjectSet.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public void removeCollection(DomainObjectCollection<? extends T> collection) { getStore().removeComposited(collection); Action<? super T> action = getEventRegister().getRemoveAction(); for (T item : collection) { action.execute(item); } }
Example #8
Source File: CompositeDomainObjectSet.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public void addCollection(DomainObjectCollection<? extends T> collection) { if (!getStore().getCollections().contains(collection)) { getStore().addComposited(collection); collection.all(getEventRegister().getAddAction()); collection.whenObjectRemoved(getEventRegister().getRemoveAction()); } }
Example #9
Source File: CompositeDomainObjectSet.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public void removeCollection(DomainObjectCollection<? extends T> collection) { getStore().removeComposited(collection); Action<? super T> action = getEventRegister().getRemoveAction(); for (T item : collection) { action.execute(item); } }
Example #10
Source File: CompositeDomainObjectSet.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public CompositeDomainObjectSet<T> addCollection(DomainObjectCollection<? extends T> collection) { if (!getStore().getCollections().contains(collection)) { getStore().addComposited(collection); collection.all(getEventRegister().getAddAction()); collection.whenObjectRemoved(getEventRegister().getRemoveAction()); } return this; }
Example #11
Source File: DelegatingDomainObjectSet.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public <S extends T> DomainObjectCollection<S> withType(Class<S> type, Closure configureClosure) { return backingSet.withType(type, configureClosure); }
Example #12
Source File: DefaultDomainObjectCollection.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public <S extends T> DomainObjectCollection<S> withType(final Class<S> type) { return filtered(createFilter(type)); }
Example #13
Source File: DefaultDomainObjectCollection.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public <S extends T> DomainObjectCollection<S> withType(Class<S> type, Action<? super S> configureAction) { DomainObjectCollection<S> result = withType(type); result.all(configureAction); return result; }
Example #14
Source File: DefaultDomainObjectCollection.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public <S extends T> DomainObjectCollection<S> withType(Class<S> type, Closure configureClosure) { DomainObjectCollection<S> result = withType(type); result.all(configureClosure); return result; }
Example #15
Source File: CompositeDomainObjectSet.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public CompositeDomainObjectSet(Class<T> type, DomainObjectCollection<? extends T>... collections) { this(type); for (DomainObjectCollection<? extends T> collection : collections) { addCollection(collection); } }
Example #16
Source File: DefaultDomainObjectCollection.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public <S extends T> DomainObjectCollection<S> withType(final Class<S> type) { return filtered(createFilter(type)); }
Example #17
Source File: DefaultDomainObjectCollection.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public DomainObjectCollection<T> matching(Closure spec) { return matching(Specs.<T>convertClosureToSpec(spec)); }
Example #18
Source File: DefaultClassDirectoryBinary.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public DomainObjectCollection<LanguageSourceSet> getSource() { return source; }
Example #19
Source File: DelegatingDomainObjectSet.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public <S extends T> DomainObjectCollection<S> withType(Class<S> type, Action<? super S> configureAction) { return backingSet.withType(type, configureAction); }
Example #20
Source File: DefaultDomainObjectCollection.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public DomainObjectCollection<T> matching(Closure spec) { return matching(Specs.<T>convertClosureToSpec(spec)); }
Example #21
Source File: DefaultDomainObjectCollection.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public DomainObjectCollection<T> matching(final Spec<? super T> spec) { return filtered(createFilter(spec)); }
Example #22
Source File: DefaultDomainObjectCollection.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public DomainObjectCollection<T> matching(Closure spec) { return matching(Specs.<T>convertClosureToSpec(spec)); }
Example #23
Source File: DefaultDomainObjectCollection.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public <S extends T> DomainObjectCollection<S> withType(final Class<S> type) { return filtered(createFilter(type)); }
Example #24
Source File: DefaultDomainObjectCollection.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public <S extends T> DomainObjectCollection<S> withType(Class<S> type, Action<? super S> configureAction) { DomainObjectCollection<S> result = withType(type); result.all(configureAction); return result; }
Example #25
Source File: DefaultDomainObjectCollection.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public <S extends T> DomainObjectCollection<S> withType(Class<S> type, Closure configureClosure) { DomainObjectCollection<S> result = withType(type); result.all(configureClosure); return result; }
Example #26
Source File: CompositeDomainObjectSet.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public CompositeDomainObjectSet(Class<T> type, DomainObjectCollection<? extends T>... collections) { this(type); for (DomainObjectCollection<? extends T> collection : collections) { addCollection(collection); } }
Example #27
Source File: DefaultDomainObjectCollection.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public DomainObjectCollection<T> matching(final Spec<? super T> spec) { return filtered(createFilter(spec)); }
Example #28
Source File: DelegatingDomainObjectSet.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public <S extends T> DomainObjectCollection<S> withType(Class<S> type, Closure configureClosure) { return backingSet.withType(type, configureClosure); }
Example #29
Source File: DefaultDomainObjectCollection.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public <S extends T> DomainObjectCollection<S> withType(Class<S> type, Closure configureClosure) { DomainObjectCollection<S> result = withType(type); result.all(configureClosure); return result; }
Example #30
Source File: DefaultClassDirectoryBinary.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public DomainObjectCollection<LanguageSourceSet> getSource() { return source; }