Codota Logo
MutableBoolean.setValue
Code IndexAdd Codota to your IDE (free)

How to use
setValue
method
in
org.apache.commons.lang.mutable.MutableBoolean

Best Java code snippets using org.apache.commons.lang.mutable.MutableBoolean.setValue (Showing top 20 results out of 351)

  • Common ways to obtain MutableBoolean
private void myMethod () {
MutableBoolean m =
  • Codota Iconnew MutableBoolean(false)
  • Codota Iconnew MutableBoolean()
  • Codota Iconnew MutableBoolean(true)
  • Smart code suggestions by Codota
}
origin: commons-lang/commons-lang

/**
 * Sets the value from any Boolean instance.
 * 
 * @param value  the value to set, not null
 * @throws NullPointerException if the object is null
 */
public void setValue(Object value) {
  setValue(((Boolean) value).booleanValue());
}
origin: apache/incubator-pinot

 @Override
 protected void updateTimeBoundary(String tableName, ExternalView externalView) {
  if (tableName.equals("myTable_OFFLINE")) {
   timeBoundaryUpdated.setValue(true);
  }
 }
};
origin: voldemort/voldemort

/**
 * Remove all non replica clock entries from the list of versioned values
 * provided
 * 
 * @param vals list of versioned values to prune replicas from
 * @param keyReplicas list of current replicas for the given key
 * @param didPrune flag to mark if we did actually prune something
 * @return pruned list
 */
public static List<Versioned<byte[]>> pruneNonReplicaEntries(List<Versioned<byte[]>> vals,
                               List<Integer> keyReplicas,
                               MutableBoolean didPrune) {
  List<Versioned<byte[]>> prunedVals = new ArrayList<Versioned<byte[]>>(vals.size());
  for(Versioned<byte[]> val: vals) {
    VectorClock clock = (VectorClock) val.getVersion();
    List<ClockEntry> clockEntries = new ArrayList<ClockEntry>();
    for(ClockEntry clockEntry: clock.getEntries()) {
      if(keyReplicas.contains((int) clockEntry.getNodeId())) {
        clockEntries.add(clockEntry);
      } else {
        didPrune.setValue(true);
      }
    }
    prunedVals.add(new Versioned<byte[]>(val.getValue(),
                       new VectorClock(clockEntries, clock.getTimestamp())));
  }
  return prunedVals;
}
origin: apache/incubator-druid

() -> {
 if (firstAttempt.isTrue()) {
  firstAttempt.setValue(false);
 } else if (lookupConfig.getCoordinatorRetryDelay() > 0) {
origin: apache/drill

if (func.getText().equals("grouping")) {
 ASTNode c = (ASTNode) ParseDriver.adaptor.getChild(root, 1);
 visited.setValue(true);
 for (int i = 0; i < grpByAstExprs.size(); i++) {
  ASTNode grpByExpr = grpByAstExprs.get(i);
   root.setChild(1, child1);
   root.addChild(child2);
   found.setValue(true);
   break;
origin: naver/ngrinder

  @Override
  public void inform(FileDistributionListener listener) {
    safeDist.setValue(listener.start(file, safe));
  }
});
origin: hector-client/hector

 @Override
 public Object answer(InvocationOnMock invocationOnMock) throws Throwable {
  wasRemoved.setValue(true);
  return null;
 }
}).when(listener).onHostDown(host);
origin: naver/ngrinder

  @Override
  public void readyToStop(StopReason stopReason) {
    // Notice: it couldn't distinguish between a script error or
    // timed out of the keepalive connection.
    System.out.println("The stop signal is recieved " + stopReason);
    if (stopReason.getDisplay().equals("Script error")) {
      timeouted.setValue(true);
    }
  }
});
origin: PhoenicisOrg/phoenicis

/**
 * Stops the watcher
 */
public void stop() {
  running.setValue(false);
}
origin: org.apache.commons/com.springsource.org.apache.commons.lang

/**
 * Sets the value from any Boolean instance.
 * 
 * @param value  the value to set, not null
 * @throws NullPointerException if the object is null
 */
public void setValue(Object value) {
  setValue(((Boolean) value).booleanValue());
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

/**
 * Sets the value from any Boolean instance.
 * 
 * @param value  the value to set, not null
 * @throws NullPointerException if the object is null
 */
public void setValue(Object value) {
  setValue(((Boolean) value).booleanValue());
}
origin: org.apache.directory.api/api-ldap-client-all

/**
 * Sets the value from any Boolean instance.
 * 
 * @param value  the value to set, not null
 * @throws NullPointerException if the object is null
 */
public void setValue(Object value) {
  setValue(((Boolean) value).booleanValue());
}
origin: com.atlassian.jira/jira-tests

  @Override
  public void doWith(Method method) throws IllegalArgumentException, IllegalAccessException
  {
    if (method.getAnnotation(EventListener.class) != null)
    {
      Class<?>[] types = method.getParameterTypes();
      if (types.length == 1 && types[0] == eventClass)
      {
        handlesNotification.setValue(true);
      }
    }
  }
});
origin: PhoenicisOrg/phoenicis

  @PreDestroy
  @Override
  public void close() {
    stop();
    executorService.shutdownNow();
    running.setValue(false);
  }
}
origin: ch.cern.hadoop/hadoop-hdfs

 @Override
 public ShortCircuitReplicaInfo createShortCircuitReplicaInfo() {
  calledCreate.setValue(true);
  return null;
 }
});
origin: com.atlassian.jira.plugins/jira-fisheye-plugin

  public void handle(Response response) throws ResponseException
  {
    if (log.isTraceEnabled())
    {
      log.trace("Server response is: {}", response.getResponseBodyAsString());
    }
    requestReturned404.setValue(response.getStatusCode() == 404);
  }
});
origin: org.apache.bookkeeper/bookkeeper-server

  @Override
  public void process(long candidateLedgerId, long startPos, ByteBuf entry) {
    long entrysLedgerId = entry.getLong(entry.readerIndex());
    long entrysEntryId = entry.getLong(entry.readerIndex() + 8);
    if ((candidateLedgerId == entrysLedgerId) && (candidateLedgerId == ledgerId)
        && ((entrysEntryId == entryId) || (entryId == -1))) {
      entryFound.setValue(true);
      formatEntry(startPos, entry, printMsg);
    }
  }
});
origin: com.atlassian.jira.plugins/jira-fisheye-plugin

  public void handle(Response response) throws ResponseException
  {
    if (log.isTraceEnabled())
    {
      log.trace("Server response is: {}", response.getResponseBodyAsString());
    }
    requestReturned404.setValue(response.getStatusCode() == 404);
  }
});
origin: org.gatein.shindig/shindig-gadgets

public boolean visit(String tag, Element element) throws SpecParserException {
 if (!"OAuth".equals(tag)) return false;
 if (oauthSpec != null) {
  throw new SpecParserException("ModulePrefs/OAuth may only occur once.");
 }
 oauthSpec = new OAuthSpec(element, base);
 oauthMarker.setValue(true);
 return true;
}
origin: com.lmco.shindig/shindig-gadgets

public boolean visit(String tag, Element element) throws SpecParserException {
 if (!"OAuth".equals(tag)) return false;
 if (oauthSpec != null) {
  throw new SpecParserException("ModulePrefs/OAuth may only occur once.");
 }
 oauthSpec = new OAuthSpec(element, base);
 oauthMarker.setValue(true);
 return true;
}
org.apache.commons.lang.mutableMutableBooleansetValue

Javadoc

Sets the value from any Boolean instance.

Popular methods of MutableBoolean

  • booleanValue
    Returns the value of this MutableBoolean as a boolean.
  • <init>
    Constructs a new MutableBoolean with the specified value.
  • isTrue
    Checks if the current value is true.
  • isFalse
    Checks if the current value is false.
  • getValue
    Gets the value as a Boolean instance.
  • get
  • set
  • toBoolean
    Gets this mutable as an instance of Boolean.

Popular in Java

  • Finding current android device location
  • requestLocationUpdates (LocationManager)
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • Menu (java.awt)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • JTable (javax.swing)
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