Drools :: Core 6.0.0.Alpha9

org.drools.factmodel.traits
Class VetoableTypedMap<T extends String,K extends Thing>

java.lang.Object
  extended by org.drools.factmodel.traits.VetoableTypedMap<T,K>
All Implemented Interfaces:
Externalizable, Serializable, Map<String,Thing>

public class VetoableTypedMap<T extends String,K extends Thing>
extends Object
implements Map<String,Thing>, Externalizable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
VetoableTypedMap()
           
VetoableTypedMap(Map map)
           
 
Method Summary
 void addToVetoable(Class trait)
           
 void clear()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 Set<Map.Entry<String,Thing>> entrySet()
           
 Thing get(Object key)
           
 boolean isEmpty()
           
 Set<String> keySet()
           
 Thing put(String key, Thing value)
           
 void putAll(Map<? extends String,? extends Thing> m)
           
 Thing putSafe(String key, Thing value)
           
 void readExternal(ObjectInput objectInput)
           
 Thing remove(Object key)
           
 void removeFromVetoable(Class trait)
           
 int size()
           
 String toString()
           
 Collection<Thing> values()
           
 void writeExternal(ObjectOutput objectOutput)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

VetoableTypedMap

public VetoableTypedMap()

VetoableTypedMap

public VetoableTypedMap(Map map)
Method Detail

size

public int size()
Specified by:
size in interface Map<String,Thing>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map<String,Thing>

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map<String,Thing>

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map<String,Thing>

get

public Thing get(Object key)
Specified by:
get in interface Map<String,Thing>

put

public Thing put(String key,
                 Thing value)
Specified by:
put in interface Map<String,Thing>

putSafe

public Thing putSafe(String key,
                     Thing value)
              throws LogicalTypeInconsistencyException
Throws:
LogicalTypeInconsistencyException

remove

public Thing remove(Object key)
Specified by:
remove in interface Map<String,Thing>

putAll

public void putAll(Map<? extends String,? extends Thing> m)
Specified by:
putAll in interface Map<String,Thing>

clear

public void clear()
Specified by:
clear in interface Map<String,Thing>

keySet

public Set<String> keySet()
Specified by:
keySet in interface Map<String,Thing>

values

public Collection<Thing> values()
Specified by:
values in interface Map<String,Thing>

entrySet

public Set<Map.Entry<String,Thing>> entrySet()
Specified by:
entrySet in interface Map<String,Thing>

addToVetoable

public void addToVetoable(Class trait)
                   throws LogicalTypeInconsistencyException
Throws:
LogicalTypeInconsistencyException

removeFromVetoable

public void removeFromVetoable(Class trait)

toString

public String toString()
Overrides:
toString in class Object

writeExternal

public void writeExternal(ObjectOutput objectOutput)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput objectInput)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

Drools :: Core 6.0.0.Alpha9

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.