java.lang.Object
overrungl.Pointer
overrungl.Struct
overrungl.nfd.NFDEnumerator
- All Implemented Interfaces:
AutoCloseable
,Iterable<String>
,Addressable
NFDEnumerator
relies on preview features of the Java platform:
NFDEnumerator
refers to one or more preview APIs:MemorySegment
,SegmentAllocator
,StructLayout
.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
A wrapper of NFD path set enumerator.
- Since:
- 0.1.0
- Author:
- squid233
- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from class overrungl.Pointer
address, allocator, managedSegment
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
static Tuple2
<NFDResult, NFDEnumerator> fromPathSetN
(SegmentAllocatorPREVIEW allocator, MemorySegmentPREVIEW pathSet) Creates an enumerator from the given path set that is created withNFD.openDialogMultipleN(java.lang.foreign.MemorySegment, overrungl.nfd.NFDNFilterItem.Buffer, java.lang.String)
PREVIEW.static Tuple2
<NFDResult, NFDEnumerator> fromPathSetU8
(SegmentAllocatorPREVIEW allocator, MemorySegmentPREVIEW pathSet) Creates an enumerator from the given path set that is created withNFD.openDialogMultipleU8(java.lang.foreign.MemorySegment, overrungl.nfd.NFDU8FilterItem.Buffer, java.lang.String)
PREVIEW.iterator()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
LAYOUT
The struct layout.
-
-
Method Details
-
fromPathSetN
public static Tuple2<NFDResult,NFDEnumerator> fromPathSetN(SegmentAllocatorPREVIEW allocator, MemorySegmentPREVIEW pathSet) Creates an enumerator from the given path set that is created withNFD.openDialogMultipleN(java.lang.foreign.MemorySegment, overrungl.nfd.NFDNFilterItem.Buffer, java.lang.String)
PREVIEW.- Parameters:
allocator
- the allocator of the enumerator.pathSet
- the path set.- Returns:
- the result and the enumerator.
-
fromPathSetU8
public static Tuple2<NFDResult,NFDEnumerator> fromPathSetU8(SegmentAllocatorPREVIEW allocator, MemorySegmentPREVIEW pathSet) Creates an enumerator from the given path set that is created withNFD.openDialogMultipleU8(java.lang.foreign.MemorySegment, overrungl.nfd.NFDU8FilterItem.Buffer, java.lang.String)
PREVIEW.- Parameters:
allocator
- the allocator of the enumerator.pathSet
- the path set.- Returns:
- the result and the enumerator.
-
iterator
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
NFDEnumerator
when preview features are enabled.