Tabnine Logo
StringBuilder.subSequence
Code IndexAdd Tabnine to your IDE (free)

How to use
subSequence
method
in
java.lang.StringBuilder

Best Java code snippets using java.lang.StringBuilder.subSequence (Showing top 20 results out of 1,161)

origin: requery/requery

@Override
public CharSequence subSequence(int start, int end) {
  return sb.subSequence(start, end);
}
origin: immutables/immutables

private CharSequence currentLine() {
 // Optimize subsequence if necessary
 return builder.subSequence(lineStartIndex, builder.length());
}
origin: apache/hive

private String getMemoizedSubString(int start, int end) {
 return  (astStr == null || start < 0 || end > astStr.length() || start >= end) ? null :
  astStr.subSequence(start, end).toString();
}
origin: apache/drill

private String getMemoizedSubString(int start, int end) {
 return  (astStr == null || start < 0 || end > astStr.length() || start >= end) ? null :
  astStr.subSequence(start, end).toString();
}
origin: com.sun.xml.bind/jaxb-impl

public CharSequence subSequence(int start, int end) {
  return getLiteral().subSequence(start,end);
}
origin: oblac/jodd

@Override
protected void endType() {
  super.endType();
  String type = declaration.subSequence(declarationTypeOffset, declaration.length()).toString();
  maybeUseType(type);
}
origin: pentaho/pentaho-kettle

endNanosecondsPosition =
 ( endNanosecondsPosition >= dateText.length() ) ? dateText.length() : endNanosecondsPosition;
String nanoseconds = String.valueOf( dateText.subSequence( startNanosecondsPosition, endNanosecondsPosition ) );
dateText.delete( startNanosecondsPosition, endNanosecondsPosition );
ParsePosition position = new ParsePosition( 0 );
origin: konsoletyper/teavm

        replacementParts.add(res.subSequence(replacementPos, res.length()));
        replacementPos = res.length();
replacementParts.add(res.subSequence(replacementPos, res.length()));
origin: apache/nifi

if (sb.length() > 2 && sb.subSequence(sb.length() - 2, sb.length()).equals(", ")) {
  sb.delete(sb.length() - 2, sb.length());
origin: apache/drill

String jodaToken = postgresToJodaMap.get(firstMatch);
if (StringUtils.countMatches(builder.subSequence(0, minPos), JODA_ESCAPE_CHARACTER) % 2 == 0) {
 int offset = minPos + firstMatch.getName().length();
 builder.replace(minPos, offset, jodaToken);
origin: cincheo/jsweet

private static boolean testStringAt(StringBuilder sb, int i, String string) {
  if (i < 0) {
    return false;
  } else if (i + string.length() > sb.length()) {
    return false;
  } else {
    return sb.subSequence(i, i + string.length()).equals(string);
  }
}
origin: org.glassfish.jaxb/jaxb-runtime

public CharSequence subSequence(int start, int end) {
  return getLiteral().subSequence(start,end);
}
origin: optimaize/language-detector

@Override
public CharSequence subSequence(int start, int end) {
  return stringBuilder.subSequence(start, end);
}
origin: owlcs/owlapi

@Override
public CharSequence subSequence(int start, int end) {
  StringBuilder sb = new StringBuilder(namespace);
  sb.append(remainder);
  return sb.subSequence(start, end);
}
origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public CharSequence subSequence(int start, int end) {
  StringBuilder sb = new StringBuilder(namespace);
  sb.append(remainder);
  return sb.subSequence(start, end);
}
origin: org.jboss.arquillian/arquillian-impl-base

private <T> String toClassString(Collection<Class<? extends T>> providers)
{
 StringBuilder sb = new StringBuilder();
 for(Class<?> provider : providers)
 {
   sb.append(provider.getName()).append(", ");
 }
 return sb.subSequence(0, sb.length()-2).toString();
}
origin: pl.edu.icm.yadda/yadda-content

private void checkAndCorrectIfLastIsNotCharacter(StringBuilder sb) {
  if(sb.length()==0)return;
  CharSequence test = sb.subSequence(sb.length()-1,sb.length());
  Matcher matcher = Pattern.compile("[,]",Pattern.CASE_INSENSITIVE).matcher(test);
  if(matcher.find()) sb.deleteCharAt(sb.length()-1);
}
origin: com.ociweb/pronghorn-pipes

@Override
public CharSequence subSequence(int start, int end) {
  if (!isInit) {
    PipeReader.readUTF8(pipe, loc, target);
    isInit = true;
  }
  return target.subSequence(start, end);
}
origin: google/closure-stylesheets

/** Deletes the end of the buffer if it exactly equals {@code s}. */
public void deleteEndingIfEndingIs(String s) {
 if (sb.subSequence(sb.length() - s.length(), sb.length()).equals(s)) {
  deleteLastChars(s.length());
 }
}
origin: org.cogroo.lang.pt_br/cogroo-addon-pt_br

private static String convert(Map<String, String> data) {
  StringBuilder sb = new StringBuilder();
  for (String key : data.keySet()) {
    sb.append(encode(key) + "=" + encode(data.get(key)));
    sb.append("&");
  }
  return sb.subSequence(0, sb.length() - 1).toString();
}
java.langStringBuildersubSequence

Popular methods of StringBuilder

  • append
  • toString
  • <init>
    Constructs a string builder initialized to the contents of the specified string. The initial capacit
  • length
  • setLength
  • charAt
  • deleteCharAt
  • insert
  • substring
  • delete
  • replace
  • setCharAt
  • replace,
  • setCharAt,
  • indexOf,
  • lastIndexOf,
  • reverse,
  • appendCodePoint,
  • getChars,
  • ensureCapacity,
  • trimToSize

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (Timer)
  • getSupportFragmentManager (FragmentActivity)
  • notifyDataSetChanged (ArrayAdapter)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Reference (javax.naming)
  • Table (org.hibernate.mapping)
    A relational table
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now