Class TraitTypeMapImpl<T extends String,​K extends org.drools.core.factmodel.traits.Thing<C>,​C>

    • Constructor Detail

      • TraitTypeMapImpl

        public TraitTypeMapImpl()
      • TraitTypeMapImpl

        public TraitTypeMapImpl​(Map map)
    • Method Detail

      • size

        public int size()
        Specified by:
        size in interface org.drools.core.util.CodedHierarchy<T extends String>
        Specified by:
        size in interface Map<T extends String,​K extends org.drools.core.factmodel.traits.Thing<C>>
        Overrides:
        size in class AbstractBitwiseHierarchyImpl<K extends org.drools.core.factmodel.traits.Thing<C>,​BitMaskKey<K extends org.drools.core.factmodel.traits.Thing<C>>>
      • containsKey

        public boolean containsKey​(Object key)
        Specified by:
        containsKey in interface Map<T extends String,​K extends org.drools.core.factmodel.traits.Thing<C>>
      • containsValue

        public boolean containsValue​(Object value)
        Specified by:
        containsValue in interface Map<T extends String,​K extends org.drools.core.factmodel.traits.Thing<C>>
      • get

        public K get​(Object key)
        Specified by:
        get in interface Map<T extends String,​K extends org.drools.core.factmodel.traits.Thing<C>>
      • put

        public K put​(String key,
                     K value)
        Specified by:
        put in interface Map<T extends String,​K extends org.drools.core.factmodel.traits.Thing<C>>
      • setBottomCode

        public void setBottomCode​(BitSet code)
        Specified by:
        setBottomCode in interface org.drools.core.factmodel.traits.TraitTypeMap<T extends String,​K extends org.drools.core.factmodel.traits.Thing<C>,​C>
        Specified by:
        setBottomCode in interface TypeLattice<T extends String>
        Overrides:
        setBottomCode in class TypeHierarchy<K extends org.drools.core.factmodel.traits.Thing<C>,​BitMaskKey<K extends org.drools.core.factmodel.traits.Thing<C>>>
      • putSafe

        public K putSafe​(String key,
                         K value)
        Specified by:
        putSafe in interface org.drools.core.factmodel.traits.TraitTypeMap<T extends String,​K extends org.drools.core.factmodel.traits.Thing<C>,​C>
      • remove

        public K remove​(Object key)
        Specified by:
        remove in interface Map<T extends String,​K extends org.drools.core.factmodel.traits.Thing<C>>
      • removeCascade

        public Collection<K> removeCascade​(String traitName)
        Specified by:
        removeCascade in interface org.drools.core.factmodel.traits.TraitTypeMap<T extends String,​K extends org.drools.core.factmodel.traits.Thing<C>,​C>
      • removeCascade

        public Collection<K> removeCascade​(BitSet code)
        Specified by:
        removeCascade in interface org.drools.core.factmodel.traits.TraitTypeMap<T extends String,​K extends org.drools.core.factmodel.traits.Thing<C>,​C>
      • putAll

        public void putAll​(Map<? extends String,​? extends K> m)
        Specified by:
        putAll in interface Map<T extends String,​K extends org.drools.core.factmodel.traits.Thing<C>>
      • keySet

        public Set<String> keySet()
        Specified by:
        keySet in interface Map<T extends String,​K extends org.drools.core.factmodel.traits.Thing<C>>
      • values

        public Collection<K> values()
        Specified by:
        values in interface Map<T extends String,​K extends org.drools.core.factmodel.traits.Thing<C>>
      • getMostSpecificTraits

        public Collection<K> getMostSpecificTraits()
        Specified by:
        getMostSpecificTraits in interface org.drools.core.factmodel.traits.TraitTypeMap<T extends String,​K extends org.drools.core.factmodel.traits.Thing<C>,​C>
      • getCurrentTypeCode

        public BitSet getCurrentTypeCode()
        Specified by:
        getCurrentTypeCode in interface org.drools.core.factmodel.traits.TraitTypeMap<T extends String,​K extends org.drools.core.factmodel.traits.Thing<C>,​C>
      • getStaticTypeCode

        public BitSet getStaticTypeCode()
      • setStaticTypeCode

        public void setStaticTypeCode​(BitSet staticTypeCode)
      • addStaticTrait

        public void addStaticTrait​(String name,
                                   BitSet code)