javaslang.collection.List.contains()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(145)

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

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));
}

相关文章