Skip navigation links
JNA API 5.5.0
com.sun.jna.platform.win32

Class WinDef.BOOL

    • Constructor Detail

      • BOOL

        public BOOL()
        Instantiates a new bool.
      • BOOL

        public BOOL(boolean value)
        Instantiates a new bool.
        Parameters:
        value - the value
      • BOOL

        public BOOL(long value)
        Instantiates a new bool.
        Parameters:
        value - the value
    • Method Detail

      • booleanValue

        public boolean booleanValue()
      • compareTo

        public int compareTo(WinDef.BOOL other)
        Specified by:
        compareTo in interface java.lang.Comparable<WinDef.BOOL>
      • compare

        public static int compare(WinDef.BOOL v1,
                                  WinDef.BOOL v2)
        Compares 2 BOOL values - - Note: a null value is considered greater than any non-null one (i.e., null values are "pushed" to the end of a sorted array / list of values)
        Parameters:
        v1 - The 1st value
        v2 - The 2nd value
        Returns:
        0 if values are equal (including if both are null, negative if 1st value less than 2nd one, positive otherwise. Note: the comparison uses the booleanValue().
        See Also:
        compare(boolean, boolean)
      • compare

        public static int compare(WinDef.BOOL v1,
                                  boolean v2)
        Compares a BOOL value with a long one. Note: if the BOOL value is null then it is consider greater than any long value.
        Parameters:
        v1 - The WinDef.BOOL value
        v2 - The boolean value
        Returns:
        0 if values are equal, negative if 1st value less than 2nd one, positive otherwise. Note: the comparison uses the IntegerType.longValue().
        See Also:
        compare(boolean, boolean)
      • compare

        public static int compare(boolean v1,
                                  boolean v2)
JNA API 5.5.0

Copyright © 2007-2018 Timothy Wall. All Rights Reserved.