org.pm4j.core.pm.impl.options
Class PmOptionSetImpl.WithIdMap

java.lang.Object
  extended by org.pm4j.core.pm.impl.options.PmOptionSetImpl
      extended by org.pm4j.core.pm.impl.options.PmOptionSetImpl.WithIdMap
All Implemented Interfaces:
PmOptionSet
Enclosing class:
PmOptionSetImpl

public static class PmOptionSetImpl.WithIdMap
extends PmOptionSetImpl

A special option set that supports optimized association of an option ID to the corresponding option value.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.pm4j.core.pm.impl.options.PmOptionSetImpl
PmOptionSetImpl.WithIdMap
 
Field Summary
 
Fields inherited from interface org.pm4j.core.pm.PmOptionSet
NULL_OPTION_ID
 
Constructor Summary
PmOptionSetImpl.WithIdMap(java.util.List<PmOption> pmOptions)
           
PmOptionSetImpl.WithIdMap(PmOption... pmOptions)
           
 
Method Summary
 void addOption(PmOption pmOption)
           
 PmOption findOptionForIdString(java.lang.String id)
           
 
Methods inherited from class org.pm4j.core.pm.impl.options.PmOptionSetImpl
addOption, addOption, findOptionForId, findOptionForTitle, getFirstOption, getFirstOptionValue, getLastOption, getLastOptionValue, getOptionForId, getOptionForIdString, getOptionForTitle, getOptions, getSize, isMultiselection, setMultiselection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PmOptionSetImpl.WithIdMap

public PmOptionSetImpl.WithIdMap(java.util.List<PmOption> pmOptions)

PmOptionSetImpl.WithIdMap

public PmOptionSetImpl.WithIdMap(PmOption... pmOptions)
Method Detail

findOptionForIdString

public PmOption findOptionForIdString(java.lang.String id)
Specified by:
findOptionForIdString in interface PmOptionSet
Overrides:
findOptionForIdString in class PmOptionSetImpl

addOption

public void addOption(PmOption pmOption)
Overrides:
addOption in class PmOptionSetImpl