Tabnine Logo
ObjectHashMap.setComparator
Code IndexAdd Tabnine to your IDE (free)

How to use
setComparator
method
in
org.drools.core.util.ObjectHashMap

Best Java code snippets using org.drools.core.util.ObjectHashMap.setComparator (Showing top 2 results out of 315)

origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

public SingleThreadedObjectStore(RuleBaseConfiguration conf, Lock lock) {
  this.behaviour = conf.getAssertBehaviour();
  this.lock = lock;
  this.assertMap = new ObjectHashMap();
  if ( AssertBehaviour.IDENTITY.equals(this.behaviour) ) {
    this.assertMap.setComparator( new IdentityAssertMapComparator() );
    this.identityMap = assertMap;
  } else {
    this.assertMap.setComparator( new EqualityAssertMapComparator() );
    this.identityMap = new ObjectHashMap();
    this.identityMap.setComparator( new IdentityAssertMapComparator() );
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

public TruthMaintenanceSystem(final AbstractWorkingMemory wm) {
  this.wm = wm;
  this.justifiedMap = new ObjectHashMap();
  this.assertMap = new ObjectHashMap();
  this.assertMap.setComparator( EqualityKeyComparator.getInstance() );
  
  beliefSystem = wm.getSessionConfiguration().getBeliefSystemType().createInstance( wm, this );
}
org.drools.core.utilObjectHashMapsetComparator

Popular methods of ObjectHashMap

  • iterator
  • size
  • <init>
  • get
  • isEmpty
  • put
  • clear
  • indexOf
  • newIterator
  • remove
  • resize
  • resize

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • onCreateOptionsMenu (Activity)
  • getApplicationContext (Context)
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Reference (javax.naming)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now