java.util.concurrent.atomic.AtomicReference.toString()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(4.9k)|赞(0)|评价(0)|浏览(105)

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

AtomicReference.toString介绍

[英]Returns the String representation of the current value.
[中]返回当前值的字符串表示形式。

代码示例

代码示例来源:origin: ReactiveX/RxJava

@Override
  public String toString() {
    return String.format("%s{%s}", getClass().getSimpleName(), super.toString());
  }
}

代码示例来源:origin: ReactiveX/RxJava

@Override
  public String toString() {
    return String.format("%s{%s}", getClass().getSimpleName(), super.toString());
  }
}

代码示例来源:origin: ReactiveX/RxJava

@Override
  public String toString() {
    return String.format("%s{%s}", getClass().getSimpleName(), super.toString());
  }
}

代码示例来源:origin: ReactiveX/RxJava

@Override
  public String toString() {
    return String.format("%s{%s}", getClass().getSimpleName(), super.toString());
  }
}

代码示例来源:origin: Atmosphere/atmosphere

public BroadcastAction filter(String broadcasterId, Object originalMessage, Object message) {
  if (message instanceof String) {
    bufferedMessage.get().append(message);
    if (bufferedMessage.get().length() < maxBufferedString) {
      return new BroadcastAction(ACTION.ABORT, message);
    } else {
      message = bufferedMessage.toString();
      bufferedMessage.get().delete(0, bufferedMessage.get().length());
      return new BroadcastAction(ACTION.CONTINUE, message);
    }
  } else {
    return new BroadcastAction(message);
  }
}

代码示例来源:origin: FoundationDB/fdb-record-layer

/**
   * A human-readable representation of the state. This is essentially just
   * a print out of the member variables of the state.
   * @return the human-readable state representation
   */
  @Override
  public String toString() {
    return "RecordStoreState(" + indexStateMap.toString() + ")";
  }
}

代码示例来源:origin: com.avast/syringe

@Override
  public String toString() {
    return reference.toString();
  }
}

代码示例来源:origin: org.xbib.helianthus/helianthus-server

@Override
  public String toString() {
    return ref.toString();
  }
}

代码示例来源:origin: tantaman/commons

@Override
  public String toString() {
    return mTask.toString();
  }
}

代码示例来源:origin: spring-projects/spring-integration

String actual = theEvent.toString();
assertThat(actual, containsString("cause=java.net.BindException"));
assertThat(actual, containsString("source="

代码示例来源:origin: com.netflix.dyno/dyno-core

public String toString() {
    return binarySearch.toString();
  }
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

public void dumpStats() {
  System.out.println( loader.toString() );
}

代码示例来源:origin: kiegroup/droolsjbpm-knowledge

public void dumpStats() {
  System.out.println( loader.toString() );
}

代码示例来源:origin: org.drools/drools-api

public void dumpStats() {
  System.out.println( loader.toString() );
}

代码示例来源:origin: org.drools/knowledge-api

public void dumpStats() {
  System.out.println( loader.toString() );
}

代码示例来源:origin: org.xlightweb/xlightweb

/**
 * {@inheritDoc}
 */
@Override
public String toString() {
  if (bodyDataSourceRef.get() == null) {
    return header.toString() + "\r\n";
  } else {
    return header.toString() + "\r\n" + bodyDataSourceRef.toString();
  }
}

代码示例来源:origin: ContainX/marathon-ldap

@Override
  public void run() {
    try {
      config.set(config.get().setAuthorizationAndGet(parse()));
      LOGGER.debug(String.format("Updated Configuration - %s ", config.toString()));
    } catch (Exception e) {
      LOGGER.error(String.format("Cannot get configuration from ldap - %s ", e));
    }
  }
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

@JRubyMethod(name = "inspect")
@Override
public synchronized IRubyObject inspect() {
  // FIXME: There's some code duplication here with RubyObject#inspect
  StringBuilder part = new StringBuilder();
  String cname = getMetaClass().getRealClass().getName();
  part.append("#<").append(cname).append(":");
  part.append(identityString());
  part.append(' ');
  part.append(status.toString().toLowerCase());
  part.append('>');
  return getRuntime().newString(part.toString());
}

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

@JRubyMethod(name = "inspect")
@Override
public synchronized IRubyObject inspect() {
  // FIXME: There's some code duplication here with RubyObject#inspect
  StringBuilder part = new StringBuilder();
  String cname = getMetaClass().getRealClass().getName();
  part.append("#<").append(cname).append(":");
  part.append(identityString());
  part.append(' ');
  part.append(status.toString().toLowerCase());
  part.append('>');
  return getRuntime().newString(part.toString());
}

代码示例来源:origin: com.sleepycat/je

public StatGroup loadStats(StatsConfig config) {
  StatGroup arbStat;
  if (arbiterAcker == null) {
    arbStat =  new StatGroup(ArbiterStatDefinition.GROUP_NAME,
                 ArbiterStatDefinition.GROUP_DESC);
  } else {
    arbStat = arbiterAcker.loadStats(config);
  }
  StringStat state = new StringStat(arbStat, ARB_STATE);
  state.set(currentState.toString());
  StatGroup trackerStats =
    arbiterVLSNTracker == null ? ArbiterVLSNTracker.loadEmptyStats() :
      arbiterVLSNTracker.loadStats(config);
  /* Add the tracker stats */
    arbStat.addAll(trackerStats);
  return arbStat;
}

相关文章