org.apache.commons.lang3.mutable.MutableBoolean.setFalse()方法的使用及代码示例

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

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

MutableBoolean.setFalse介绍

[英]Sets the value to false.
[中]

代码示例

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

throwException.setFalse();

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

throwException.setFalse();
pageCache.flushAndForce();

代码示例来源:origin: org.apache.commons/commons-lang3

@Test
public void testGetSet() {
  assertFalse(new MutableBoolean().booleanValue());
  assertEquals(Boolean.FALSE, new MutableBoolean().getValue());
  final MutableBoolean mutBool = new MutableBoolean(false);
  assertEquals(Boolean.FALSE, mutBool.toBoolean());
  assertFalse(mutBool.booleanValue());
  assertTrue(mutBool.isFalse());
  assertFalse(mutBool.isTrue());
  mutBool.setValue(Boolean.TRUE);
  assertEquals(Boolean.TRUE, mutBool.toBoolean());
  assertTrue(mutBool.booleanValue());
  assertFalse(mutBool.isFalse());
  assertTrue(mutBool.isTrue());
  mutBool.setValue(false);
  assertFalse(mutBool.booleanValue());
  mutBool.setValue(true);
  assertTrue(mutBool.booleanValue());
  mutBool.setFalse();
  assertFalse(mutBool.booleanValue());
  mutBool.setTrue();
  assertTrue(mutBool.booleanValue());
}

代码示例来源:origin: com.atlassian.bitbucket.server.plugin/source-annotation-support

@Override
public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException {
  // only immediate children of the cache directory can themselves be cache directories;
  // further subdirectories can't be
  if (cacheDir.equals(dir.getParent())) {
    Path lastAccessed = dir.resolve(LAST_ACCESS_FILE_NAME);
    if (Files.isRegularFile(lastAccessed) &&
        currentTime - Files.getLastModifiedTime(lastAccessed).toMillis() < WEEK_IN_MILLIS) {
      isEmpty.setFalse(); // at least one entry isn't being deleted
      // if the cache was recently accessed, retain it
      return FileVisitResult.SKIP_SUBTREE;
    }
  }
  // if the directory isn't a valid cache, or hasn't been accessed recently, traverse
  // into it and delete its contents
  return FileVisitResult.CONTINUE;
}

代码示例来源:origin: us.ihmc/IHMCHumanoidRobotics

/** {@inheritDoc} */
@Override
public void clear()
{
 for (BodyPart bodyPart : BodyPart.values)
 {
   if (bodyPart.isRobotSideNeeded())
   {
    for (RobotSide robotSide : RobotSide.values)
    {
      sideDependentBodyPartRequestMap.get(robotSide).get(bodyPart).setFalse();
    }
   }
   else
   {
    otherBodyPartRequestMap.get(bodyPart).setFalse();
   }
 }
}

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

throw new RuntimeException("invalid escape sequence in template [" + template + "] - escaping char [" + c + "]");
segment.append(c);
escaping.setFalse();

代码示例来源:origin: kframework/k

@Override
  public void apply(KApply k) {
    if (k.klabel().name().equals("<k>")) {
      if (!hasProblem.booleanValue()) {
        hasProblem.setTrue();
        if (k.klist().items().size() == 1) {
          if (k.klist().items().get(0) instanceof KSequence) {
            KSequence seq = (KSequence) k.klist().items().get(0);
            if (seq.items().size() >= 1) {
              K head = seq.items().get(0);
              while (head instanceof KAs) {
                head = ((KAs) head).pattern();
              }
              if (head instanceof KApply) {
                KApply app = (KApply) head;
                if (!(app.klabel() instanceof KVariable)) {
                  if (!rhs || (!functions.contains(app.klabel()) && !anywhereKLabels.contains(app.klabel()))) {
                    nextOps.add(app.klabel());
                    hasProblem.setFalse();
                  }
                }
              }
            }
          }
        }
      }
    }
    super.apply(k);
  }
}.apply(side);

代码示例来源:origin: kframework/k

if (predicateRules.stream().filter(r -> isPredicateFor(r, candidateSort)).findAny().isPresent()) {
  isProtecting.setFalse();
    isProtecting.setFalse();

代码示例来源:origin: us.ihmc/IHMCAvatarInterfaces

robotPosition2d.set(rootJointPosition.getX(), rootJointPosition.getY());
reportMessage(HeightQuadTreeMessageConverter.convertQuadTreeForGround(quadTree, robotPosition2d, quadTreeMessageMaxRadius));
quadTreeUpdateRequested.setFalse();

相关文章