Package oshi.jna.platform.windows
Class WinNT.LARGE_INTEGER
java.lang.Object
com.sun.jna.Structure
oshi.jna.platform.windows.WinNT.LARGE_INTEGER
- All Implemented Interfaces:
java.lang.Comparable<WinNT.LARGE_INTEGER>
- Direct Known Subclasses:
WinNT.LARGE_INTEGER.ByReference
- Enclosing interface:
- WinNT
@FieldOrder("u") public static class WinNT.LARGE_INTEGER extends com.sun.jna.Structure implements java.lang.Comparable<WinNT.LARGE_INTEGER>
A 64-bit integer;
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WinNT.LARGE_INTEGER.ByReference
static class
WinNT.LARGE_INTEGER.LowHigh
static class
WinNT.LARGE_INTEGER.UNION
-
Field Summary
Fields Modifier and Type Field Description WinNT.LARGE_INTEGER.UNION
u
-
Constructor Summary
Constructors Constructor Description LARGE_INTEGER()
LARGE_INTEGER(long value)
-
Method Summary
Modifier and Type Method Description static int
compare(WinNT.LARGE_INTEGER v1, long v2)
Compares a LARGE_INTEGER value with along
one.static int
compare(WinNT.LARGE_INTEGER v1, WinNT.LARGE_INTEGER v2)
Compares 2 LARGE_INTEGER values - - Note: anull
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)int
compareTo(WinNT.LARGE_INTEGER other)
com.sun.jna.platform.win32.WinDef.DWORD
getHigh()
High DWORD.com.sun.jna.platform.win32.WinDef.DWORD
getLow()
Low DWORD.long
getValue()
64-bit value.java.lang.String
toString()
Methods inherited from class com.sun.jna.Structure
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFieldOrder, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, useMemory, useMemory, write, writeField, writeField, writeField
-
Field Details
-
Constructor Details
-
LARGE_INTEGER
public LARGE_INTEGER() -
LARGE_INTEGER
public LARGE_INTEGER(long value)
-
-
Method Details
-
getLow
public com.sun.jna.platform.win32.WinDef.DWORD getLow()Low DWORD.- Returns:
- Low DWORD value
-
getHigh
public com.sun.jna.platform.win32.WinDef.DWORD getHigh()High DWORD.- Returns:
- High DWORD value
-
getValue
public long getValue()64-bit value.- Returns:
- The 64-bit value.
-
compareTo
- Specified by:
compareTo
in interfacejava.lang.Comparable<WinNT.LARGE_INTEGER>
-
toString
public java.lang.String toString()- Overrides:
toString
in classcom.sun.jna.Structure
-
compare
Compares 2 LARGE_INTEGER values - - Note: anull
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 valuev2
- 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 thegetValue()
. - See Also:
IntegerType.compare(long, long)
-
compare
Compares a LARGE_INTEGER value with along
one. Note: if the LARGE_INTEGER value isnull
then it is consider greater than anylong
value.- Parameters:
v1
- TheWinNT.LARGE_INTEGER
valuev2
- Thelong
value- Returns:
- 0 if values are equal, negative if 1st value less than 2nd one,
positive otherwise. Note: the comparison uses the
getValue()
. - See Also:
IntegerType.compare(long, long)
-