Codota Logo
DaciukMihovAutomatonBuilder$State.replaceLastChild
Code IndexAdd Codota to your IDE (free)

How to use
replaceLastChild
method
in
org.apache.lucene.util.automaton.DaciukMihovAutomatonBuilder$State

Best Java code snippets using org.apache.lucene.util.automaton.DaciukMihovAutomatonBuilder$State.replaceLastChild (Showing top 4 results out of 315)

  • Common ways to obtain DaciukMihovAutomatonBuilder$State
private void myMethod () {
DaciukMihovAutomatonBuilder$State d =
  • Codota Iconnew State()
  • Smart code suggestions by Codota
}
origin: org.apache.lucene/lucene-core

/**
 * Replace last child of <code>state</code> with an already registered state
 * or stateRegistry the last child state.
 */
private void replaceOrRegister(State state) {
 final State child = state.lastChild();
 
 if (child.hasChildren()) replaceOrRegister(child);
 
 final State registered = stateRegistry.get(child);
 if (registered != null) {
  state.replaceLastChild(registered);
 } else {
  stateRegistry.put(child, child);
 }
}
origin: org.infinispan/infinispan-embedded-query

/**
 * Replace last child of <code>state</code> with an already registered state
 * or stateRegistry the last child state.
 */
private void replaceOrRegister(State state) {
 final State child = state.lastChild();
 
 if (child.hasChildren()) replaceOrRegister(child);
 
 final State registered = stateRegistry.get(child);
 if (registered != null) {
  state.replaceLastChild(registered);
 } else {
  stateRegistry.put(child, child);
 }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

/**
 * Replace last child of <code>state</code> with an already registered state
 * or stateRegistry the last child state.
 */
private void replaceOrRegister(State state) {
 final State child = state.lastChild();
 
 if (child.hasChildren()) replaceOrRegister(child);
 
 final State registered = stateRegistry.get(child);
 if (registered != null) {
  state.replaceLastChild(registered);
 } else {
  stateRegistry.put(child, child);
 }
}
origin: harbby/presto-connectors

/**
 * Replace last child of <code>state</code> with an already registered state
 * or stateRegistry the last child state.
 */
private void replaceOrRegister(State state) {
 final State child = state.lastChild();
 
 if (child.hasChildren()) replaceOrRegister(child);
 
 final State registered = stateRegistry.get(child);
 if (registered != null) {
  state.replaceLastChild(registered);
 } else {
  stateRegistry.put(child, child);
 }
}
org.apache.lucene.util.automatonDaciukMihovAutomatonBuilder$StatereplaceLastChild

Javadoc

Replace the last added outgoing transition's target state with the given state.

Popular methods of DaciukMihovAutomatonBuilder$State

  • <init>
  • getState
    Returns the target state of a transition leaving this state and labeled with label. If no such tran
  • hasChildren
    Return true if this state has any children (outgoing transitions).
  • lastChild
    Return the associated state if the most recent transition is labeled withlabel.
  • newState
    Create a new outgoing transition labeled label and return the newly created target state for this tr
  • referenceEquals
    Compare two lists of objects for reference-equality.

Popular in Java

  • Making http requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • onRequestPermissionsResult (Fragment)
  • orElseThrow (Optional)
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now