com.strobel.core.ArrayUtilities.contains()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(5.8k)|赞(0)|评价(0)|浏览(120)

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

ArrayUtilities.contains介绍

暂无

代码示例

代码示例来源:origin: org.jboss.windup.decompiler.procyon/procyon-compilertools

@SuppressWarnings("UnusedParameters")
public static boolean isKeyword(final String identifier, final AstNode context) {
  return ArrayUtilities.contains(KEYWORDS, identifier);
}

代码示例来源:origin: org.jboss.windup.decompiler.procyon/windup-procyon-compilertools

@SuppressWarnings("UnusedParameters")
public static boolean isKeyword(final String identifier, final AstNode context) {
  return ArrayUtilities.contains(KEYWORDS, identifier);
}

代码示例来源:origin: org.jboss.windup.decompiler.procyon/procyon-compilertools

public static boolean isKeyword(final String identifier) {
  return ArrayUtilities.contains(KEYWORDS, identifier);
}

代码示例来源:origin: org.bitbucket.mstrobel/procyon-compilertools

@SuppressWarnings("UnusedParameters")
public static boolean isKeyword(final String identifier, final AstNode context) {
  return ArrayUtilities.contains(KEYWORDS, identifier);
}

代码示例来源:origin: org.bitbucket.mstrobel/procyon-compilertools

public static boolean isKeyword(final String identifier) {
  return ArrayUtilities.contains(KEYWORDS, identifier);
}

代码示例来源:origin: org.jboss.windup.decompiler.procyon/windup-procyon-compilertools

public static boolean isKeyword(final String identifier) {
  return ArrayUtilities.contains(KEYWORDS, identifier);
}

代码示例来源:origin: org.bitbucket.mstrobel/procyon-core

@Override
public boolean containsAll(final Iterable<? extends T> c) {
  VerifyArgument.notNull(c, "c");
  for (final T element : c) {
    if (!ArrayUtilities.contains(_elements, element)) {
      return false;
    }
  }
  return true;
}

代码示例来源:origin: org.jboss.windup.decompiler.procyon/procyon-core

@Override
public boolean containsAll(final Iterable<? extends T> c) {
  VerifyArgument.notNull(c, "c");
  for (final T element : c) {
    if (!ArrayUtilities.contains(_elements, element)) {
      return false;
    }
  }
  return true;
}

代码示例来源:origin: org.jboss.windup.decompiler.procyon/windup-procyon-core

@Override
public boolean containsAll(final Iterable<? extends T> c) {
  VerifyArgument.notNull(c, "c");
  for (final T element : c) {
    if (!ArrayUtilities.contains(_elements, element)) {
      return false;
    }
  }
  return true;
}

代码示例来源:origin: org.jboss.windup.decompiler.procyon/procyon-core

public static String removeRight(final String value, final char[] removeChars) {
  VerifyArgument.notNull(value, "value");
  VerifyArgument.notNull(removeChars, "removeChars");
  final int totalLength = value.length();
  int length = totalLength;
  while (length > 0 && ArrayUtilities.contains(removeChars, value.charAt(length - 1))) {
    --length;
  }
  return length == totalLength ? value : value.substring(0, length);
}

代码示例来源:origin: org.jboss.windup.decompiler.procyon/windup-procyon-core

public static String removeLeft(final String value, final char[] removeChars) {
  VerifyArgument.notNull(value, "value");
  VerifyArgument.notNull(removeChars, "removeChars");
  final int totalLength = value.length();
  int start = 0;
  while (start < totalLength && ArrayUtilities.contains(removeChars, value.charAt(start))) {
    ++start;
  }
  return start > 0 ? value.substring(start) : value;
}

代码示例来源:origin: org.bitbucket.mstrobel/procyon-core

public static String removeLeft(final String value, final char[] removeChars) {
  VerifyArgument.notNull(value, "value");
  VerifyArgument.notNull(removeChars, "removeChars");
  final int totalLength = value.length();
  int start = 0;
  while (start < totalLength && ArrayUtilities.contains(removeChars, value.charAt(start))) {
    ++start;
  }
  return start > 0 ? value.substring(start) : value;
}

代码示例来源:origin: org.bitbucket.mstrobel/procyon-core

public static String removeRight(final String value, final char[] removeChars) {
  VerifyArgument.notNull(value, "value");
  VerifyArgument.notNull(removeChars, "removeChars");
  final int totalLength = value.length();
  int length = totalLength;
  while (length > 0 && ArrayUtilities.contains(removeChars, value.charAt(length - 1))) {
    --length;
  }
  return length == totalLength ? value : value.substring(0, length);
}

代码示例来源:origin: org.jboss.windup.decompiler.procyon/procyon-core

public static String removeLeft(final String value, final char[] removeChars) {
  VerifyArgument.notNull(value, "value");
  VerifyArgument.notNull(removeChars, "removeChars");
  final int totalLength = value.length();
  int start = 0;
  while (start < totalLength && ArrayUtilities.contains(removeChars, value.charAt(start))) {
    ++start;
  }
  return start > 0 ? value.substring(start) : value;
}

代码示例来源:origin: org.jboss.windup.decompiler.procyon/windup-procyon-core

public static String removeRight(final String value, final char[] removeChars) {
  VerifyArgument.notNull(value, "value");
  VerifyArgument.notNull(removeChars, "removeChars");
  final int totalLength = value.length();
  int length = totalLength;
  while (length > 0 && ArrayUtilities.contains(removeChars, value.charAt(length - 1))) {
    --length;
  }
  return length == totalLength ? value : value.substring(0, length);
}

代码示例来源:origin: org.bitbucket.mstrobel/procyon-compilertools

(mergeVariables.isEmpty() ||
 (!mergeVariables.contains(parameterVariable) &&
 ArrayUtilities.contains(refDefinitions, parameterDefinitions[0])))) {

代码示例来源:origin: org.jboss.windup.decompiler.procyon/windup-procyon-compilertools

!ArrayUtilities.contains(labels, tempTarget.get())) {

代码示例来源:origin: org.jboss.windup.decompiler.procyon/procyon-compilertools

!ArrayUtilities.contains(labels, tempTarget.get())) {

代码示例来源:origin: org.bitbucket.mstrobel/procyon-compilertools

!ArrayUtilities.contains(labels, tempTarget.get())) {

代码示例来源:origin: org.jboss.windup.decompiler.procyon/windup-procyon-compilertools

(mergeVariables.isEmpty() ||
 (!mergeVariables.contains(parameterVariable) &&
 ArrayUtilities.contains(refDefinitions, parameterDefinitions[0])))) {

相关文章