info.sswap.api.input.impl
Class EnumeratedInputImpl

java.lang.Object
  extended by info.sswap.api.input.impl.AbstractInput
      extended by info.sswap.api.input.impl.EnumeratedInputImpl
All Implemented Interfaces:
EnumeratedInput, Input, java.io.Serializable

public class EnumeratedInputImpl
extends AbstractInput
implements EnumeratedInput

Author:
Evren Sirin
See Also:
Serialized Form

Field Summary
private  com.google.common.collect.ImmutableSet<InputValue> values
           
 
Fields inherited from class info.sswap.api.input.impl.AbstractInput
description, label, propertyInput, type, value
 
Constructor Summary
EnumeratedInputImpl(java.util.Collection<InputValue> values)
           
 
Method Summary
 void accept(InputVisitor visitor)
          Visitor function.
 boolean equals(java.lang.Object obj)
           
 java.util.Collection<InputValue> getValues()
          Returns the allowed set of input values for this input.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class info.sswap.api.input.impl.AbstractInput
genericEqualTo, getDescription, getLabel, getPropertyInput, getType, getValue, isUnrestricted, setDescription, setLabel, setPropertyInput, setValue, toStringLabel
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface info.sswap.api.input.EnumeratedInput
getType
 
Methods inherited from interface info.sswap.api.input.Input
getDescription, getLabel, getPropertyInput, getValue, isUnrestricted, setDescription, setLabel, setPropertyInput, setValue
 

Field Detail

values

private final com.google.common.collect.ImmutableSet<InputValue> values
Constructor Detail

EnumeratedInputImpl

public EnumeratedInputImpl(java.util.Collection<InputValue> values)
Method Detail

accept

public void accept(InputVisitor visitor)
Visitor function.

Specified by:
accept in interface Input

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getValues

public java.util.Collection<InputValue> getValues()
Description copied from interface: EnumeratedInput
Returns the allowed set of input values for this input.

Specified by:
getValues in interface EnumeratedInput

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright (c) 2011, iPlant Collaborative, University of Arizona, Cold Spring Harbor Laboratories, University of Texas at Austin.