Record Class WindowHelper.WindowInfo
java.lang.Object
java.lang.Record
cool.scx.ffm.platform.win32.helper.WindowHelper.WindowInfo
- Enclosing class:
WindowHelper
public static record WindowHelper.WindowInfo(MemorySegment hWnd, String className, String title, boolean isVisible, MemorySegment threadProcessId)
extends Record
- Version:
- 0.0.1
- Author:
- scx567888
-
Constructor Summary
ConstructorsConstructorDescriptionWindowInfo(MemorySegment hWnd, String className, String title, boolean isVisible, MemorySegment threadProcessId) Creates an instance of aWindowInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.hWnd()Returns the value of thehWndrecord component.booleanReturns the value of theisVisiblerecord component.Returns the value of thethreadProcessIdrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WindowInfo
public WindowInfo(MemorySegment hWnd, String className, String title, boolean isVisible, MemorySegment threadProcessId) Creates an instance of aWindowInforecord class.- Parameters:
hWnd- the value for thehWndrecord componentclassName- the value for theclassNamerecord componenttitle- the value for thetitlerecord componentisVisible- the value for theisVisiblerecord componentthreadProcessId- the value for thethreadProcessIdrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
hWnd
Returns the value of thehWndrecord component.- Returns:
- the value of the
hWndrecord component
-
className
Returns the value of theclassNamerecord component.- Returns:
- the value of the
classNamerecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
isVisible
public boolean isVisible()Returns the value of theisVisiblerecord component.- Returns:
- the value of the
isVisiblerecord component
-
threadProcessId
Returns the value of thethreadProcessIdrecord component.- Returns:
- the value of the
threadProcessIdrecord component
-