Skip to content

Commit

Permalink
NativeFile return List
Browse files Browse the repository at this point in the history
  • Loading branch information
a10y committed Mar 7, 2025
1 parent d3aa77a commit c8d5292
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import dev.vortex.api.DType;
import dev.vortex.jni.FFI;
import java.nio.charset.StandardCharsets;
import java.util.List;
import java.util.Optional;

public final class NativeDType extends BaseWrapped<FFI.FFIDType> implements DType {
Expand Down Expand Up @@ -78,7 +79,7 @@ public String toString() {
}

@Override
public ImmutableList<String> getFieldNames() {
public List<String> getFieldNames() {
checkNotNull(inner);
checkArgument(Variant.STRUCT == variant, "getStructFieldNames() for non-struct DType");

Expand All @@ -100,7 +101,7 @@ public ImmutableList<String> getFieldNames() {
}

@Override
public ImmutableList<DType> getFieldTypes() {
public List<DType> getFieldTypes() {
checkNotNull(inner);
checkArgument(Variant.STRUCT == variant, "getStructFieldNames() for non-struct DType");
ImmutableList.Builder<DType> builder = ImmutableList.builder();
Expand Down

0 comments on commit c8d5292

Please sign in to comment.