Tabnine Logo
SetOnce$AlreadySetException
Code IndexAdd Tabnine to your IDE (free)

How to use
SetOnce$AlreadySetException
in
org.apache.lucene.util

Best Java code snippets using org.apache.lucene.util.SetOnce$AlreadySetException (Showing top 4 results out of 315)

origin: org.apache.lucene/lucene-core

/** Sets the given object. If the object has already been set, an exception is thrown. */
public final void set(T obj) {
 if (set.compareAndSet(false, true)) {
  this.obj = obj;
 } else {
  throw new AlreadySetException();
 }
}

origin: harbby/presto-connectors

/** Sets the given object. If the object has already been set, an exception is thrown. */
public final void set(T obj) {
 if (set.compareAndSet(false, true)) {
  this.obj = obj;
 } else {
  throw new AlreadySetException();
 }
}

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

/** Sets the given object. If the object has already been set, an exception is thrown. */
public final void set(T obj) {
 if (set.compareAndSet(false, true)) {
  this.obj = obj;
 } else {
  throw new AlreadySetException();
 }
}

origin: org.infinispan/infinispan-embedded-query

/** Sets the given object. If the object has already been set, an exception is thrown. */
public final void set(T obj) {
 if (set.compareAndSet(false, true)) {
  this.obj = obj;
 } else {
  throw new AlreadySetException();
 }
}

org.apache.lucene.utilSetOnce$AlreadySetException

Javadoc

Thrown when SetOnce#set(Object) is called more than once.

Most used methods

  • <init>

Popular in Java

  • Making http requests using okhttp
  • addToBackStack (FragmentTransaction)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setRequestProperty (URLConnection)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Collectors (java.util.stream)
  • JTextField (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top 12 Jupyter Notebook extensions
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