Advertisement
Guest User

cassDesignIssue

a guest
Feb 9th, 2013
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.53 KB | None | 0 0
  1. public class Expect {
  2.    
  3.     private A[] a;
  4.     private B[] b;
  5.    
  6.     public Expect(A[] a, B[] b) {
  7.         this.a = a;
  8.         this.b = b;
  9.     }
  10.  
  11.     public Expect(A[] a) {
  12.         this.a = a;
  13.     }
  14.  
  15.     public Expect(B[] b) {
  16.         this.b = b;
  17.     }
  18.    
  19.     + GETTERS, SETTERS
  20. }
  21.  
  22. public class A {
  23.    
  24.     private String name;
  25.     private int value;
  26.    
  27.     public A(String name, int value) {
  28.         this.name = name;
  29.         this.value = value;
  30.     }
  31.     + GETTERS, SETTERS
  32. }
  33.  
  34. public class B {
  35.    
  36.     private int age;
  37.    
  38.     public A(int age) {
  39.         this.age = age;
  40.     }
  41.     + GETTERS, SETTERS
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement