Code example for AtomicBoolean

0
public class PrefixRename implements PropertyConverter 
{ 
  private final String prefix;
  private final String outputPrefix;
 
  private final AtomicBoolean ran = new AtomicBoolean(false);
 
  public PrefixRename( 
      String prefix,
      String outputPrefix
  ) 
  { 
    this.prefix = prefix;
    this.outputPrefix = outputPrefix;
  } 
 
  @Override 
  public boolean canHandle(String property)
  { 
    return property.startsWith(prefix) && !ran.get();
Connect your IDE to all the code out there  Get Codota for Java