Searched refs:Box (Results 1 - 25 of 80) sorted by relevance

1234

/openjdk9/langtools/test/tools/javac/generics/wildcards/
H A DT6450290.java10 static class Box<X extends Box<?,?>, T extends X> { class in class:T6450290
12 Box<X, T> same;
15 static class A extends Box<A,A> {}
16 static class B extends Box<B,B> {}
18 Box<?,?> b = new Box<Box<A,A>,Box<A,A>>();
19 b.value.same = new Box<
[all...]
H A DSubtypeCaptureLeak.java35 interface Box<T> {} interface in class:SubtypeCaptureLeak
36 interface SubBox<T> extends Box<T> {}
48 <T> void m2(Box<? extends Parent<? extends T>> arg) {}
50 void testApplicable(Box<Child<?>> arg) {
65 <T> void m4(Box<? extends Parent<? extends T>> arg) {}
/openjdk9/langtools/test/tools/javac/generics/
H A DUncheckedCovariance.java12 static class Box<T> { } class in class:UncheckedCovariance
14 Box<Integer> f() { return null; }
17 Box f() { return null; }
H A DGenericMerge.java33 class Box<T> {} class
36 <T> Box<T> box(T t);
39 <T> Box<T> box(T t);
/openjdk9/langtools/test/tools/javac/generics/wildcards/pos/
H A DBoundsCollision.java35 static class Box<T extends Number> { class in class:StreinBug
36 void f(Box<T> bt) { }
40 Box<? super Number> b0 = null;
41 Box<Number> b1 = b0;
H A DRvalConversion.java40 class Box<T> { class
45 Box<? extends Integer> bi = null;
/openjdk9/jdk/test/java/beans/XMLEncoder/
H A Djavax_swing_Box.java27 * @summary Tests Box value encoding
31 import javax.swing.Box;
34 public final class javax_swing_Box extends AbstractTest<Box> {
39 protected Box getObject() {
40 return new Box(BoxLayout.LINE_AXIS);
43 protected Box getAnotherObject() {
44 return Box.createHorizontalBox();
H A DTest4903007.java31 import javax.swing.Box;
43 Box vBox = Box.createVerticalBox();
45 vBox.add(Box.createVerticalStrut(10));
47 vBox.add(Box.createVerticalGlue());
49 vBox.add(Box.createVerticalStrut(10));
52 Box hBox = Box.createHorizontalBox();
54 hBox.add(Box.createHorizontalStrut(10));
56 hBox.add(Box
[all...]
H A Djavax_swing_Box_Filler.java32 import javax.swing.Box.Filler;
/openjdk9/langtools/test/tools/javac/generics/inference/
H A DNestedWildcards.java34 public static void test(Box<String> b) {
37 private static <X> Box<? extends X> foo(Box<? extends X> ts) {
40 public static <Y> Box<? extends Y> bar(Box<? extends Y> language) {
44 interface Box<T> {} interface in class:NestedWildcards
H A DLowerBoundGLB.java34 interface Box<T> { interface in class:LowerBoundGLB
39 <T> T doGLB(Box<? super T> b1, Box<? super T> b2) {
43 void test(Box<? super String> l1, Box<? super CharSequence> l2) {
/openjdk9/langtools/test/tools/javac/generics/diamond/neg/
H A DNeg22.java14 class Box<Z> { class in class:Neg22
15 Box(Z z) { } method in class:Neg22.Box
19 new Box<>(new Outer<>().new Inner<>()) { };
/openjdk9/langtools/test/tools/javac/varargs/access/
H A DVarargsAndWildcardParameterizedTypeTest3.java35 <T> void m(Box<? extends T> iter, T... t);
38 interface Box<T> {} interface in class:VarargsAndWildcardParameterizedTypeTest2
40 void m(I i, Box<? extends Number> b) {
H A DVarargsAndWildcardParameterizedTypeTest4.java35 <T> void m(Box<T> iter, T... t);
38 interface Box<T> {} interface in class:VarargsAndWildcardParameterizedTypeTest2
40 void m(I i, Box<? extends Number> b) {
H A DVarargsAndWildcardParameterizedTypeTest2.java38 interface Box<T> { interface in class:VarargsAndWildcardParameterizedTypeTest2
42 void m(I i, Box<? extends Number> b) {
/openjdk9/langtools/test/tools/javac/lambda/methodReference/
H A DMethodRef8.java32 void test(Box<? extends Box<? extends Number>> b) {
33 Number n1 = b.map(Box::get).get();
34 Number n2 = b.<Number>map(Box::get).get();
39 interface Box<T> { interface in class:MethodRef8
41 <R> Box<R> map(Func<T,R> f);
/openjdk9/langtools/test/tools/javac/generics/typevars/
H A DIntersectionSubVar.java33 interface Box<T> { interface in class:IntersectionSubVar
38 <I> Box<I> glb(Box<? super I> arg1, Box<? super I> arg2) {
42 <E extends Cloneable> void takeBox(Box<? super E> box) {}
44 <T> void test(Box<T> arg1, Box<Cloneable> arg2, Box<? super T> arg3) {
46 takeBox(arg3); // inference tests Box<CAP> <: Box<
[all...]
/openjdk9/hotspot/test/compiler/escapeAnalysis/
H A DTestEABadMergeMem.java38 static class Box { class in class:TestEABadMergeMem
48 static int test(Box a, Box c, int i, int j, int k, boolean flag1, boolean flag2) {
49 Box b = new Box(); // non escaping
81 Box a = new Box();
82 Box c = new Box();
/openjdk9/langtools/test/tools/javac/Diagnostics/compressed/8067883/
H A DT8067883.java20 new Box<>(null, li);
21 new Box<>(1, li);
26 static class Box<X> { class in class:T8067883
27 Box(List<X> z, List<String> ls) { } method in class:T8067883.Box
/openjdk9/jdk/test/java/beans/XMLEncoder/6777487/
H A DTestBox.java32 import javax.swing.Box;
40 new Box(BoxLayout.LINE_AXIS),
41 new Box(BoxLayout.PAGE_AXIS) {
/openjdk9/langtools/test/tools/javac/foreach/
H A DListOfListTest.java60 static class Box<T> { class in class:ListOfListTest
61 Box(T t) { this.t = t; } method in class:ListOfListTest.Box
67 Box<E> box = new Box<E>(E.c);
73 Box<Integer> boxi = new Box<Integer>(12);
/openjdk9/langtools/test/tools/javac/lambda/8016177/
H A DT8016177g.java15 interface Box<T> { interface in class:Test
33 Box<String> b = null;
/openjdk9/jdk/src/java.desktop/share/classes/javax/swing/
H A DBox.java36 * Box provides several class methods
38 * even non-Box containers.
41 * The <code>Box</code> class can create several kinds
45 * If all the components your <code>Box</code> contains
79 public class Box extends JComponent implements Accessible { class in inherits:JComponent,Accessible
82 * Creates a <code>Box</code> that displays its components
93 public Box(int axis) { method in class:Box
99 * Creates a <code>Box</code> that displays its components
100 * from left to right. If you want a <code>Box</code> that
102 * <code>Box</cod
[all...]
/openjdk9/jdk/test/sanity/client/lib/SwingSet3/src/com/sun/swingset3/demos/slider/
H A DSliderDemo.java137 p.add(Box.createRigidArea(VGAP5));
139 p.add(Box.createRigidArea(VGAP5));
141 hp.add(Box.createRigidArea(VGAP10));
153 p.add(Box.createRigidArea(VGAP5));
155 p.add(Box.createRigidArea(VGAP5));
157 hp.add(Box.createRigidArea(VGAP10));
175 p.add(Box.createRigidArea(VGAP5));
177 p.add(Box.createRigidArea(VGAP5));
179 hp.add(Box.createRigidArea(VGAP10));
194 p.add(Box
[all...]
/openjdk9/jdk/test/sanity/client/lib/SwingSet3/src/com/sun/swingset3/demos/togglebutton/
H A DDirectionPanel.java26 import javax.swing.Box;
50 Box firstThree = Box.createHorizontalBox();
51 Box secondThree = Box.createHorizontalBox();
52 Box thirdThree = Box.createHorizontalBox();

Completed in 215 milliseconds

1234