本文整理了Java中javaslang.collection.List.contains()
方法的一些代码示例,展示了List.contains()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。List.contains()
方法的具体详情如下:
包路径:javaslang.collection.List
类名称:List
方法名:contains
暂无
代码示例来源:origin: com.io7m.smfj/com.io7m.smfj.core
/**
* @param bits The size in bits
*
* @return {@code true} if a signed integer type with the given size is
* supported
*/
public static boolean isIntegerSignedSupported(
final int bits)
{
return SUPPORTED_INTEGER_SIGNED.contains(Integer.valueOf(bits));
}
代码示例来源:origin: com.io7m.smfj/com.io7m.smfj.core
/**
* @param bits The size in bits
*
* @return {@code true} if an unsigned integer type with the given size is
* supported
*/
public static boolean isIntegerUnsignedSupported(
final int bits)
{
return SUPPORTED_INTEGER_UNSIGNED.contains(Integer.valueOf(bits));
}
代码示例来源:origin: com.io7m.smfj/io7m-smfj-core
/**
* @param bits The size in bits
*
* @return {@code true} if an unsigned integer type with the given size is
* supported
*/
public static boolean isIntegerUnsignedSupported(
final int bits)
{
return SUPPORTED_INTEGER_UNSIGNED.contains(Integer.valueOf(bits));
}
代码示例来源:origin: com.io7m.smfj/io7m-smfj-core
/**
* @param bits The size in bits
*
* @return {@code true} if a signed integer type with the given size is
* supported
*/
public static boolean isIntegerSignedSupported(
final int bits)
{
return SUPPORTED_INTEGER_SIGNED.contains(Integer.valueOf(bits));
}
代码示例来源:origin: com.io7m.smfj/com.io7m.smfj.core
/**
* @param bits The size in bits
*
* @return {@code true} if a floating point type with the given size is
* supported
*/
public static boolean isFloatSupported(
final int bits)
{
return SUPPORTED_FLOAT.contains(Integer.valueOf(bits));
}
代码示例来源:origin: com.io7m.smfj/io7m-smfj-core
/**
* @param bits The size in bits
*
* @return {@code true} if a floating point type with the given size is
* supported
*/
public static boolean isFloatSupported(
final int bits)
{
return SUPPORTED_FLOAT.contains(Integer.valueOf(bits));
}
内容来源于网络,如有侵权,请联系作者删除!