1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/samples/codeinjection/src/org/apidesign/codeinjection/spi/CountDownExtender.java Sat Jan 10 21:29:22 2009 +0100
1.3 @@ -0,0 +1,17 @@
1.4 +package org.apidesign.codeinjection.spi;
1.5 +
1.6 +/** Allows to define meaning of "--"
1.7 + *
1.8 + * @author Jaroslav Tulach <jtulach@netbeans.org>
1.9 + * @since 2.0
1.10 + */
1.11 +// BEGIN: codeinjection.slot
1.12 +public interface CountDownExtender {
1.13 + /** Allows providers to specify that it means to "decrement" a value.
1.14 + *
1.15 + * @param value previous value
1.16 + * @return result of "--" operation in interpretation of this extender
1.17 + */
1.18 + public int decrement(int value);
1.19 +}
1.20 +// END: codeinjection.slot