1 23 package org.apache.slide.search.basic; 24 25 import java.util.HashSet ; 27 import java.util.Collection ; 28 29 36 public class BasicResultSetImpl extends HashSet implements IBasicResultSet { 37 38 41 protected boolean partial = false; 42 43 44 47 public BasicResultSetImpl() { 48 this(false); 49 } 50 51 58 public BasicResultSetImpl(boolean isPartialResult) { 59 super(); 60 setPartialResultSet(isPartialResult); 61 } 62 63 69 public BasicResultSetImpl(Collection collection) { 70 this(collection, false); 71 } 72 73 81 public BasicResultSetImpl(Collection collection, boolean isPartialResult) { 82 super(collection); 83 setPartialResultSet(isPartialResult); 84 } 85 86 87 92 public boolean isPartialResultSet() { 93 return partial; 94 } 95 96 102 public void setPartialResultSet(boolean partial) { 103 this.partial = partial; 104 } 105 } 106 107 108 | Popular Tags |