mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-24 05:18:58 +00:00
(common) Deprecate EdgeId and similar
This commit is contained in:
parent
b958acb76a
commit
7bb3e44a76
@ -3,8 +3,9 @@ package nu.marginalia.model.id;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* This exists entirely for strengthening the typing of IDs
|
* This exists entirely for strengthening the typing of IDs
|
||||||
*
|
* Deprecated: We dont' use this anymore
|
||||||
* @param <T>
|
* @param <T>
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public record EdgeId<T>(int id) {
|
public record EdgeId<T>(int id) {
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,7 @@ package nu.marginalia.model.id;
|
|||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.stream.IntStream;
|
import java.util.stream.IntStream;
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
public record EdgeIdArray<T> (int... values) implements EdgeIdCollection<T> {
|
public record EdgeIdArray<T> (int... values) implements EdgeIdCollection<T> {
|
||||||
|
|
||||||
public static <T> EdgeIdArray<T> gather(IntStream stream) {
|
public static <T> EdgeIdArray<T> gather(IntStream stream) {
|
||||||
|
@ -4,6 +4,7 @@ import java.util.Arrays;
|
|||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.stream.IntStream;
|
import java.util.stream.IntStream;
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
public interface EdgeIdCollection<T> extends Iterable<EdgeId<T>> {
|
public interface EdgeIdCollection<T> extends Iterable<EdgeId<T>> {
|
||||||
int size();
|
int size();
|
||||||
boolean isEmpty();
|
boolean isEmpty();
|
||||||
|
@ -2,6 +2,7 @@ package nu.marginalia.model.id;
|
|||||||
|
|
||||||
import gnu.trove.TIntCollection;
|
import gnu.trove.TIntCollection;
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
public interface EdgeIdCollectionMutable<T> {
|
public interface EdgeIdCollectionMutable<T> {
|
||||||
TIntCollection underlyingCollection();
|
TIntCollection underlyingCollection();
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@ import gnu.trove.list.array.TIntArrayList;
|
|||||||
|
|
||||||
import java.util.stream.IntStream;
|
import java.util.stream.IntStream;
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
public record EdgeIdList<T> (TIntArrayList list) implements
|
public record EdgeIdList<T> (TIntArrayList list) implements
|
||||||
EdgeIdCollection<T>,
|
EdgeIdCollection<T>,
|
||||||
EdgeIdCollectionMutable<T> {
|
EdgeIdCollectionMutable<T> {
|
||||||
|
@ -5,6 +5,7 @@ import gnu.trove.set.hash.TIntHashSet;
|
|||||||
|
|
||||||
import java.util.stream.IntStream;
|
import java.util.stream.IntStream;
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
public record EdgeIdSet<T> (TIntHashSet set) implements EdgeIdCollection<T>, EdgeIdCollectionMutable<T> {
|
public record EdgeIdSet<T> (TIntHashSet set) implements EdgeIdCollection<T>, EdgeIdCollectionMutable<T> {
|
||||||
|
|
||||||
public EdgeIdSet(int... values) {
|
public EdgeIdSet(int... values) {
|
||||||
|
Loading…
Reference in New Issue
Block a user