1 18 package org.objectweb.speedo.genclass.collection; 19 20 import org.objectweb.jorm.api.PIndexedElem; 21 import org.objectweb.speedo.genclass.api.SpeedoGenClassProxy; 22 import org.objectweb.speedo.genclass.GenClassAccessor; 23 import org.objectweb.speedo.genclass.GenClassElement; 24 25 28 public class SetAccessor extends CollectionAccessor implements java.util.Set { 29 30 33 public SetAccessor(SpeedoGenClassProxy jdoProxy) { 34 super(jdoProxy); 35 } 36 37 41 protected boolean duplicatAllowed() { 42 return false; 43 } 44 45 public PIndexedElem createPIndexedElem(GenClassAccessor gca) { 46 return new SetElem(gca); 47 } 48 49 public GenClassElement speedoAdd(Object o, boolean allowDuplicates) { 50 return super.speedoAdd(o, false); 51 } 52 } 53 | Popular Tags |