mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-15 18:37:17 +01:00
41 lines
1 KiB
Java
41 lines
1 KiB
Java
package com.fasterxml.jackson.databind.util;
|
|
|
|
import com.here.time.Duration$$ExternalSyntheticBUOutline0;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes7.dex */
|
|
public final class LinkedNode<T> {
|
|
private LinkedNode<T> next;
|
|
private final T value;
|
|
|
|
public LinkedNode(T t, LinkedNode<T> linkedNode) {
|
|
this.value = t;
|
|
this.next = linkedNode;
|
|
}
|
|
|
|
public static <ST> boolean contains(LinkedNode<ST> linkedNode, ST st) {
|
|
while (linkedNode != null) {
|
|
if (linkedNode.value() == st) {
|
|
return true;
|
|
}
|
|
linkedNode = linkedNode.next();
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public void linkNext(LinkedNode<T> linkedNode) {
|
|
if (this.next == null) {
|
|
this.next = linkedNode;
|
|
} else {
|
|
Duration$$ExternalSyntheticBUOutline0.m$1();
|
|
}
|
|
}
|
|
|
|
public LinkedNode<T> next() {
|
|
return this.next;
|
|
}
|
|
|
|
public T value() {
|
|
return this.value;
|
|
}
|
|
}
|