OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 17 | Rev 180 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 17 Rev 80
Line 13... Line 13...
13
 
13
 
14
 package org.openconcerto.utils.cc;
14
 package org.openconcerto.utils.cc;
15
 
15
 
16
public abstract class Closure<E> implements IClosure<E>, ITransformer<E, Object>, org.apache.commons.collections.Closure {
16
public abstract class Closure<E> implements IClosure<E>, ITransformer<E, Object>, org.apache.commons.collections.Closure {
17
 
17
 
-
 
18
    private static final IClosure<Object> nop = new IClosure<Object>() {
-
 
19
        @Override
-
 
20
        public void executeChecked(Object input) {
-
 
21
        }
-
 
22
    };
-
 
23
 
-
 
24
    @SuppressWarnings("unchecked")
-
 
25
    public static final <N> IClosure<N> nopClosure() {
-
 
26
        return (IClosure<N>) nop;
-
 
27
    }
-
 
28
 
18
    @SuppressWarnings("unchecked")
29
    @SuppressWarnings("unchecked")
19
    public final void execute(Object input) {
30
    public final void execute(Object input) {
20
        this.executeChecked((E) input);
31
        this.executeChecked((E) input);
21
    }
32
    }
22
 
33