1 19 package org.netbeans.test.classes; 20 21 import org.netbeans.test.interfaces.Interface1; 22 import org.netbeans.test.interfaces.Interface2; 23 24 28 public class Class3 { 29 30 protected static final String field3_1; 31 private int field3_2; 32 33 static { 34 field3_1 = "FIELD31"; 35 } 36 37 { 38 field3_2 = 300; 39 } 40 41 Interface2 field3 = new Interface2() { 42 public int method2_1(int arg1, String arg2) { 43 return (arg2 == null) ? arg1 : arg1 * Interface2.CONSTANT2_I1; 44 } 45 public int method2_2(int arg1, Interface2 arg2) { 46 return (arg2 == null) ? arg1 : field3_2 * arg2.CONSTANT2_I1; 47 } 48 }; 49 50 class Class4 implements Interface1 { 51 public int method1_1(int arg1, String arg2) { 52 return (arg2 == null) ? arg1 : arg1 * Interface2.CONSTANT2_I1; 53 } 54 public int method1_2(int arg1, Interface1 arg2) { 55 return (arg2 == null) ? arg1 : field3_2 * arg2.CONSTANT1_I1; 56 } 57 } 58 } 59 | Popular Tags |