org.openmrs.logic.result
Class EmptyResult

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<Result>
              extended by org.openmrs.logic.result.Result
                  extended by org.openmrs.logic.result.EmptyResult
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<Result>, java.util.Collection<Result>, java.util.List<Result>, java.util.RandomAccess

public class EmptyResult
extends Result

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.openmrs.logic.result.Result
Result.Datatype
 
Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
EmptyResult()
           
 
Method Summary
 void add(int arg0, Result arg1)
           
 boolean add(Result value)
           
 boolean addAll(java.util.Collection<? extends Result> newValues)
           
 boolean addAll(int index, java.util.Collection<? extends Result> newValues)
           
 void clear()
           
 boolean isEmpty()
           
 boolean isNull()
           
 Result remove(int index)
           
 boolean remove(java.lang.Object value)
           
 boolean removeAll(java.util.Collection<?> c)
           
 Result set(int index, Result element)
           
 java.lang.Boolean toBoolean()
           
 
Methods inherited from class org.openmrs.logic.result.Result
contains, contains, containsConcept, earliest, emptyResult, equals, exists, get, getDatatype, getResultDate, getResultObject, gt, latest, nullResult, setDatatype, setResultDate, setResultObject, setValueBoolean, setValueCoded, setValueDatetime, setValueNumeric, setValueNumeric, setValueText, toConcept, toDatetime, toNumber, toObject, toString, unique
 
Methods inherited from class java.util.ArrayList
clone, contains, ensureCapacity, indexOf, lastIndexOf, removeRange, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, retainAll
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, hashCode, iterator, listIterator, listIterator, retainAll, subList
 

Constructor Detail

EmptyResult

public EmptyResult()
Method Detail

add

public void add(int arg0,
                Result arg1)
Specified by:
add in interface java.util.List<Result>
Overrides:
add in class java.util.ArrayList<Result>
See Also:
ArrayList.add(int, Object)

add

public boolean add(Result value)
Specified by:
add in interface java.util.Collection<Result>
Specified by:
add in interface java.util.List<Result>
Overrides:
add in class java.util.ArrayList<Result>
See Also:
ArrayList.add(Object)

addAll

public boolean addAll(java.util.Collection<? extends Result> newValues)
Specified by:
addAll in interface java.util.Collection<Result>
Specified by:
addAll in interface java.util.List<Result>
Overrides:
addAll in class java.util.ArrayList<Result>
See Also:
ArrayList.addAll(java.util.Collection)

addAll

public boolean addAll(int index,
                      java.util.Collection<? extends Result> newValues)
Specified by:
addAll in interface java.util.List<Result>
Overrides:
addAll in class java.util.ArrayList<Result>
See Also:
ArrayList.addAll(int, java.util.Collection)

clear

public void clear()
Specified by:
clear in interface java.util.Collection<Result>
Specified by:
clear in interface java.util.List<Result>
Overrides:
clear in class java.util.ArrayList<Result>
See Also:
ArrayList.clear()

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Collection<Result>
Specified by:
isEmpty in interface java.util.List<Result>
Overrides:
isEmpty in class java.util.ArrayList<Result>
See Also:
ArrayList.isEmpty()
Expected behavior:
return true

toBoolean

public java.lang.Boolean toBoolean()
Overrides:
toBoolean in class Result
Returns:
boolean representation of the result. For non-boolean results, this will either be the overridden boolean value (if specifically defined) or a boolean representation of the default datatype. If the result is a list, then return false only if all members are false
Datatype Returns
CODED false for concept FALSE
true for all others
DATETIME true for any date value
false if the date is null
NUMERIC true for any non-zero number
false for zero
TEXT true for any non-blank value
false if blank or null
See Also:
Result.toBoolean()

isNull

public boolean isNull()
Overrides:
isNull in class Result
Returns:
true if result is empty
See Also:
Result.isNull()
Expected behavior:
return true

remove

public Result remove(int index)
Specified by:
remove in interface java.util.List<Result>
Overrides:
remove in class java.util.ArrayList<Result>
See Also:
ArrayList.remove(int)

remove

public boolean remove(java.lang.Object value)
Specified by:
remove in interface java.util.Collection<Result>
Specified by:
remove in interface java.util.List<Result>
Overrides:
remove in class java.util.ArrayList<Result>
See Also:
ArrayList.remove(java.lang.Object)

removeAll

public boolean removeAll(java.util.Collection<?> c)
Specified by:
removeAll in interface java.util.Collection<Result>
Specified by:
removeAll in interface java.util.List<Result>
Overrides:
removeAll in class java.util.AbstractCollection<Result>
See Also:
AbstractCollection.removeAll(java.util.Collection)

set

public Result set(int index,
                  Result element)
Specified by:
set in interface java.util.List<Result>
Overrides:
set in class java.util.ArrayList<Result>
See Also:
ArrayList.set(int, Object)

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change