Package test.boundaries

Examples of test.boundaries.LowerBounded


   
    UpperBoundedContainer<UpperBounded> cont3 =
      new UpperBoundedContainer<UpperBounded>(new UpperBounded());
   
    UpperBoundedContainer<LowerBounded> cont4 =
      new UpperBoundedContainer<LowerBounded>(new LowerBounded());
   
    cont.print();
    cont3.print();
    cont4.print();
  }
View Full Code Here


    // Upper bounded is prohibited because is not allowed by generic boundary
//    LowerBoundedContainer<UpperBounded> cont3 =
//      new LowerBoundedContainer<UpperBounded>(new UpperBounded());
   
    LowerBoundedContainer<LowerBounded> cont4 =
      new LowerBoundedContainer<LowerBounded>(new LowerBounded());
   
    cont4.print();
  }
View Full Code Here

//   
//    UpperBoundedContainer<LowerBounded> cont5 =
//      new UpperBoundedContainer<LowerBounded>(new UpperBounded());
   
    UpperBoundedContainer<LowerBounded> cont3 =
      new UpperBoundedContainer<LowerBounded>(new LowerBounded());
   
    UpperBoundedContainer<LowerBounded> cont4 =
      new UpperBoundedContainer<LowerBounded>(new LowerBounded());
   
    cont3.print();
    cont4.print();
  }
View Full Code Here

TOP

Related Classes of test.boundaries.LowerBounded

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.