1 30 package org.jruby.javasupport.test; 31 32 import java.util.Collection ; 33 import java.util.List ; 34 import java.util.Map ; 35 import java.util.Set ; 36 37 public interface RubyTestObject 38 { 39 public RubyTestObject duplicate (); 40 public boolean isSelf (RubyTestObject obj); 41 42 public void noArgs (); 43 44 public void setNumber (double d); 45 public void setNumber (int i); 46 public void setNumber (long l); 47 public void setNumber (Double d); 48 public void setNumber (Integer i); 49 public void setNumber (Long l); 50 51 public double getNumberAsDouble (); 52 public int getNumberAsInt (); 53 public long getNumberAsLong (); 54 public Double getNumberAsDoubleObj (); 55 public Integer getNumberAsIntObj (); 56 public Long getNumberAsLongObj (); 57 58 public String getString (); 59 public void setString (String s); 60 61 public boolean getBool (); 62 public void setBool (boolean b); 63 64 public Object getObject (); 65 public void setObject (Object obj); 66 67 public void setList (Collection l); 68 public void setList (int[] l); 69 public void setList (Object [] l); 70 public List getList (); 71 public Object [] getListAsArray (); 72 public String [] getListAsStringArray (); 73 public int[] getListAsIntArray (); 74 public Integer [] getListAsIntegerArray (); 75 public Set getListAsSet (); 76 public Collection getListAsCollection (); 77 78 public void setMap (Map m); 79 public Map getMap (); 80 81 public void addToList (Object obj); 82 public void removeFromList (Object obj); 83 public String joinList (); 84 } 85 | Popular Tags |