org.apache.commons.lang.mutable.MutableBoolean.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(6.9k)|赞(0)|评价(0)|浏览(73)

本文整理了Java中org.apache.commons.lang.mutable.MutableBoolean.<init>()方法的一些代码示例,展示了MutableBoolean.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MutableBoolean.<init>()方法的具体详情如下:
包路径:org.apache.commons.lang.mutable.MutableBoolean
类名称:MutableBoolean
方法名:<init>

MutableBoolean.<init>介绍

[英]Constructs a new MutableBoolean with the default value of false.
[中]构造一个默认值为false的新可变布尔值。

代码示例

代码示例来源:origin: apache/incubator-druid

MutableBoolean firstAttempt = new MutableBoolean(true);
Map<String, LookupExtractorFactoryContainer> lookupMap = RetryUtils.retry(
  () -> {

代码示例来源:origin: apache/drill

protected static ASTNode rewriteGroupingFunctionAST(final List<ASTNode> grpByAstExprs, ASTNode targetNode,
    final boolean noneSet) throws SemanticException {
 final MutableBoolean visited = new MutableBoolean(false);
 final MutableBoolean found = new MutableBoolean(false);

代码示例来源:origin: voldemort/voldemort

vals1 = pruneAndResolve(vals1, new MutableBoolean());
assertEquals("Must have one winning version", 1, vals1.size());
assertEquals("Must resolve to onlineClock", onlineClock1, vals1.get(0).getVersion());

代码示例来源:origin: voldemort/voldemort

vals.add(new Versioned<byte[]>(key, fetchedClock));
vals.add(new Versioned<byte[]>(key, onlineClock));
MutableBoolean didPrune = new MutableBoolean();
didPrune = new MutableBoolean();

代码示例来源:origin: voldemort/voldemort

List<Versioned<byte[]>> vals = lockHandle.getValues();
List<Integer> keyReplicas = routingPlan.getReplicationNodeList(routingPlan.getMasterPartitionId(key.get()));
MutableBoolean didPrune = new MutableBoolean(false);
List<Versioned<byte[]>> prunedVals = pruneNonReplicaEntries(vals,
                              keyReplicas,

代码示例来源:origin: voldemort/voldemort

vals.add(new Versioned<byte[]>(key, clock4));
MutableBoolean didPrune = new MutableBoolean(false);
List<Versioned<byte[]>> prunedVals = VersionedPutPruneJob.pruneNonReplicaEntries(vals,
                                         keyReplicas,

代码示例来源:origin: apache/incubator-pinot

offlineExternalView.setState("someSegment_0", "Server_1.2.3.4_1234", "ONLINE");
final MutableBoolean timeBoundaryUpdated = new MutableBoolean(false);

代码示例来源:origin: voldemort/voldemort

vals.add(new Versioned<byte[]>(key, fetchedClock2));
vals.add(new Versioned<byte[]>(key, onlineClock2));
MutableBoolean didPrune = new MutableBoolean();
vals.add(new Versioned<byte[]>(key, fetchedClock1));
vals.add(new Versioned<byte[]>(key, fetchedClock2));
didPrune = new MutableBoolean();

代码示例来源:origin: stackoverflow.com

...
final MutableBoolean finished = new MutableBoolean(false);
new Thread(new Runnable(){
  public void run() {
    doComplicatedStuff(finished);
  }
}).start();

Thread.sleep(4000);
finished.setValue(true);

代码示例来源:origin: hector-client/hector

CassandraHost host = connectionManager.getHosts().iterator().next();
ConnectionManagerListener listener = mock(ConnectionManagerListener.class);
final MutableBoolean wasRemoved = new MutableBoolean();
doAnswer(new Answer() {
 @Override

代码示例来源:origin: naver/ngrinder

GrinderProperties properties = new GrinderProperties(scriptFile);
properties.setAssociatedFile(new File("long-time-prepare-test.properties"));
final MutableBoolean timeouted = new MutableBoolean(false);
console1.addListener(new SingleConsole.ConsoleShutdownListener() {
  @Override

代码示例来源:origin: org.jvnet.hudson/htmlunit

/**
 * Provides information of the text representation of the range.
 * @return a text representation
 */
@Override
public String toString() {
  final org.w3c.dom.Node ancestor = getCommonAncestorContainer();
  final StringBuilder sb = new StringBuilder();
  if (ancestor != null) {
    getText(ancestor, sb, new MutableBoolean(false));
  }
  return sb.toString();
}

代码示例来源:origin: net.disy.htmlunit/htmlunit

/**
 * Provides information of the text representation of the range.
 * @return a text representation
 */
@Override
public String toString() {
  final org.w3c.dom.Node ancestor = getCommonAncestorContainer();
  final StringBuilder sb = new StringBuilder();
  if (ancestor != null) {
    getText(ancestor, sb, new MutableBoolean(false));
  }
  return sb.toString();
}

代码示例来源:origin: org.jenkins-ci/htmlunit

/**
 * Provides information of the text representation of the range.
 * @return a text representation
 */
@Override
public String toString() {
  final org.w3c.dom.Node ancestor = getCommonAncestorContainer();
  final StringBuilder sb = new StringBuilder();
  if (ancestor != null) {
    getText(ancestor, sb, new MutableBoolean(false));
  }
  return sb.toString();
}

代码示例来源:origin: naver/ngrinder

final MutableBoolean safeDist = new MutableBoolean(safe);
ConsoleProperties consoleComponent = getConsoleComponent(ConsoleProperties.class);
final File file = consoleComponent.getDistributionDirectory().getFile();

代码示例来源:origin: Evolveum/midpoint

public static boolean hasAllDefinitions(ObjectFilter filter) {
  final MutableBoolean hasAllDefinitions = new MutableBoolean(true);
  Visitor visitor = f -> {
    if (f instanceof ValueFilter) {
      ItemDefinition definition = ((ValueFilter<?,?>) f).getDefinition();
      if (definition == null) {
        hasAllDefinitions.setValue(false);
      }
    }
  };
  filter.accept(visitor);
  return hasAllDefinitions.booleanValue();
}

代码示例来源:origin: org.sonarsource.sonarqube/sonar-batch

public ActiveRules provide(ActiveRulesLoader loader, ModuleQProfiles qProfiles) {
 if (singleton == null) {
  Profiler profiler = Profiler.create(LOG).startInfo(LOG_MSG);
  MutableBoolean fromCache = new MutableBoolean();
  singleton = load(loader, qProfiles, fromCache);
  profiler.stopInfo(fromCache.booleanValue());
 }
 return singleton;
}

代码示例来源:origin: org.sonarsource.sonarqube/sonar-batch

public GlobalRepositories provide(GlobalRepositoriesLoader loader) {
  if (globalReferentials == null) {
   Profiler profiler = Profiler.create(LOG).startInfo(LOG_MSG);
   MutableBoolean fromCache = new MutableBoolean();
   globalReferentials = loader.load(fromCache);
   profiler.stopInfo(fromCache.booleanValue());
  }
  return globalReferentials;
 }
}

代码示例来源:origin: pentaho/pentaho-platform

public static RepositoryFileTree getTree( final Session session, final PentahoJcrConstants pentahoJcrConstants,
  final IPathConversionHelper pathConversionHelper, final ILockHelper lockHelper, final String absPath,
  final RepositoryRequest repositoryRequest, IRepositoryAccessVoterManager accessVoterManager )
 throws RepositoryException {
 Item fileItem = session.getItem( JcrStringHelper.pathEncode( absPath ) );
 // items are nodes or properties; this must be a node
 Assert.isTrue( fileItem.isNode() );
 Node fileNode = (Node) fileItem;
 return getTreeByNode( session, pentahoJcrConstants, pathConversionHelper, lockHelper, fileNode, repositoryRequest
   .getDepth(), repositoryRequest.getChildNodeFilter(), repositoryRequest.isShowHidden(), accessVoterManager,
   repositoryRequest.getTypes(), new MutableBoolean( false ), repositoryRequest.isIncludeSystemFolders(),
   absPath );
}

代码示例来源:origin: org.sonarsource.sonarqube/sonar-batch

public ProjectRepositories provide(ProjectRepositoriesLoader loader, ProjectKey projectKey, DefaultAnalysisMode mode) {
 if (project == null) {
  MutableBoolean fromCache = new MutableBoolean(false);
  Profiler profiler = Profiler.create(LOG).startInfo(LOG_MSG);
  if (mode.isNotAssociated()) {
   project = createNonAssociatedProjectRepositories();
   profiler.stopInfo();
  } else {
   project = loader.load(projectKey.get(), mode.isIssues(), fromCache);
   checkProject(mode);
   profiler.stopInfo(fromCache.booleanValue());
  }
 }
 return project;
}

相关文章