Forbidden

This annotation is used to mark methods from the standard library, that are forbidden to be used by the student in order to implement the annotated method.

The following example shows how to use this annotation:


            
            public static int max(int a, int b) {
                if (a > b) {
                    return a;
                } else {
                    return b;
                }
            }
        

Alternatively the entire class or package can be forbidden:


            
            public static int max(int a, int b) {
                if (a > b) {
                     return a;
                } else {
                    return b;
                }
            }
       

Functions

Link copied to clipboard
public abstract Class<? extends Annotation> annotationType()
Link copied to clipboard
public abstract boolean equals(Object p)
Link copied to clipboard
public abstract int hashCode()
Link copied to clipboard
public abstract String toString()
Link copied to clipboard
public abstract Array<String> value()
The forbidden methods.