org.restlet.data.Reference.isAlpha()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(96)

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

Reference.isAlpha介绍

[英]Indicates if the given character is alphabetical (a-z or A-Z).
[中]指示给定字符是否按字母顺序排列(a-z或a-z)。

代码示例

代码示例来源:origin: DeviceConnect/DeviceConnect-Android

/**
 * Indicates if the given character is an unreserved URI character.
 * 
 * @param character
 *            The character to test.
 * @return True if the given character is an unreserved URI character.
 */
public static boolean isUnreserved(int character) {
  return isAlpha(character) || isDigit(character) || (character == '-')
      || (character == '.') || (character == '_')
      || (character == '~');
}

代码示例来源:origin: org.restlet.osgi/org.restlet

/**
 * Indicates if the given character is an unreserved URI character.
 * 
 * @param character
 *            The character to test.
 * @return True if the given character is an unreserved URI character.
 */
public static boolean isUnreserved(int character) {
  return isAlpha(character) || isDigit(character) || (character == '-')
      || (character == '.') || (character == '_')
      || (character == '~');
}

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

/**
 * Indicates if the given character is an unreserved URI character.
 * 
 * @param character
 *            The character to test.
 * @return True if the given character is an unreserved URI character.
 */
public static boolean isUnreserved(int character) {
  return isAlpha(character) || isDigit(character) || (character == '-')
      || (character == '.') || (character == '_')
      || (character == '~');
}

相关文章

Reference类方法