cn.chenlichao.wmi4j.consts
枚举 Flags.CompareToFlag

java.lang.Object
  继承者 java.lang.Enum<Flags.CompareToFlag>
      继承者 cn.chenlichao.wmi4j.consts.Flags.CompareToFlag
所有已实现的接口:
Serializable, Comparable<Flags.CompareToFlag>
包容类:
Flags

public static enum Flags.CompareToFlag
extends Enum<Flags.CompareToFlag>

Optional values of flags parameter for SWbemObject.compareTo()


枚举常量摘要
wbemComparisonFlagIgnoreCase
          16(0x10): Compares string values in a case-insensitive manner.
wbemComparisonFlagIgnoreClass
          8(0x8): Instructs the system to assume that the objects being compared are instances of the same class.
wbemComparisonFlagIgnoreDefaultValues
          4(0x4): Causes default values of properties to be ignored.
wbemComparisonFlagIgnoreFlavor
          32(0x20): Causes qualifier flavors to be ignored.
wbemComparisonFlagIgnoreObjectSource
          2(0x2): Causes the source of the objects, namely the server and the namespace they came from, to be ignored in comparison to other objects.
wbemComparisonFlagIgnoreQualifiers
          1(0x1): Causes all qualifiers (including Key and Dynamic) to be ignored in comparison.
wbemComparisonFlagIncludeAll
          0(0x0): Compares all properties, qualifiers, and flavors.
 
方法摘要
 int getValue()
           
static Flags.CompareToFlag valueOf(String name)
          返回带有指定名称的该类型的枚举常量。
static Flags.CompareToFlag[] values()
          按照声明该枚举类型的常量的顺序,返回 包含这些常量的数组。
 
从类 java.lang.Enum 继承的方法
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
从类 java.lang.Object 继承的方法
getClass, notify, notifyAll, wait, wait, wait
 

枚举常量详细信息

wbemComparisonFlagIncludeAll

public static final Flags.CompareToFlag wbemComparisonFlagIncludeAll
0(0x0): Compares all properties, qualifiers, and flavors.


wbemComparisonFlagIgnoreObjectSource

public static final Flags.CompareToFlag wbemComparisonFlagIgnoreObjectSource
2(0x2): Causes the source of the objects, namely the server and the namespace they came from, to be ignored in comparison to other objects.


wbemComparisonFlagIgnoreQualifiers

public static final Flags.CompareToFlag wbemComparisonFlagIgnoreQualifiers
1(0x1): Causes all qualifiers (including Key and Dynamic) to be ignored in comparison.


wbemComparisonFlagIgnoreDefaultValues

public static final Flags.CompareToFlag wbemComparisonFlagIgnoreDefaultValues
4(0x4): Causes default values of properties to be ignored. This flag is only meaningful when comparing classes.


wbemComparisonFlagIgnoreFlavor

public static final Flags.CompareToFlag wbemComparisonFlagIgnoreFlavor
32(0x20): Causes qualifier flavors to be ignored. This flag takes qualifier values into account, but ignores flavor distinctions such as propagation rules and override restrictions.


wbemComparisonFlagIgnoreCase

public static final Flags.CompareToFlag wbemComparisonFlagIgnoreCase
16(0x10): Compares string values in a case-insensitive manner. This applies both to strings and to qualifier values. Property and qualifier names are always compared in a case-insensitive manner whether this flag is specified or not.


wbemComparisonFlagIgnoreClass

public static final Flags.CompareToFlag wbemComparisonFlagIgnoreClass
8(0x8): Instructs the system to assume that the objects being compared are instances of the same class. Consequently, this flag compares instance-related information only. Use this flag to optimize performance. If the objects are not of the same class, the results are undefined.

方法详细信息

values

public static Flags.CompareToFlag[] values()
按照声明该枚举类型的常量的顺序,返回 包含这些常量的数组。该方法可用于迭代 常量,如下所示:
for (Flags.CompareToFlag c : Flags.CompareToFlag.values())
    System.out.println(c);


valueOf

public static Flags.CompareToFlag valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格。)

参数:
name - 要返回的枚举常量的名称。
返回:
返回带有指定名称的枚举常量
抛出:
如果该枚举类型没有带有指定名称的常量, - 则抛出 IllegalArgumentException

getValue

public int getValue()


Copyright © 2014. All rights reserved.