Skip to content

Instantly share code, notes, and snippets.

Marco Faella mfaella

Block or report user

Report or block mfaella

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mfaella
mfaella / L.java
Created Jul 8, 2019
A list-like class exposing its length as part of its type
View L.java
import java.util.*;
/**
* A linked list that exposes its length as part of its type.
*
* @author Marco Faella
* @version 1.0
*/
public class L<T,N extends L<T,?>> implements Iterable<T> {
private T item;
You can’t perform that action at this time.