Uses of Class
at.jku.ssw.fp.coll.FList
-
Packages that use FList Package Description at.jku.ssw.fp.coll at.jku.ssw.fp.sect03_3 at.jku.ssw.fp.sect04_2.fp at.jku.ssw.fp.sect05_3.parser at.jku.ssw.fp.sect06_3 at.jku.ssw.fp.sect11_3.check4j -
-
Uses of FList in at.jku.ssw.fp.coll
Subclasses of FList in at.jku.ssw.fp.coll Modifier and Type Class Description static class
FList.Cons<E>
Class representing a functional list with a head element and tail list.static class
FList.Nil<E>
Class for the empty list.Fields in at.jku.ssw.fp.coll declared as FList Modifier and Type Field Description private static FList
FList. NIL
The single object representing the empty listprivate FList<E>
FList.Cons. tail
The tail listMethods in at.jku.ssw.fp.coll that return FList Modifier and Type Method Description FList<E>
FList. add(E elem)
Creates a new list with the given element as head and this list as tail.FList<E>
FList.Builder. build()
Creates a functional list with the elements collected in the builder.FList<E>
FList.Builder. concat(FList<E> fList)
Adds all elements in the given list to this builder.static <E> FList<E>
FList. empty()
Returns the empty list.FList<E>
FList. filter(Predicate<? super E> predicate)
Returns a functional list consisting of the elements of this list that match the given predicate.<R> FList<R>
FList. flatMap(Function<? super E,? extends FList<? extends R>> mapper)
Returns a functional list consisting of the results of replacing each element of this list with the contents of a mapped list produced by applying the provided mapping function to each element.static <T> FList<T>
FList. generate(int n, Supplier<T> supplier)
Creates a functional list withn
elements generated by the provided supplier function.<R> FList<R>
FList. map(Function<? super E,? extends R> mapper)
Returns a functional list consisting of the results of applying the given function to the elements of this list.static <E> FList<E>
FList. of(E... elems)
Creates a functional list with the given elements.FList<E>
FList. remove(Object obj)
Creates a new functional list with same elements as this list but without the given object.FList<E>
FList. removeIdx(int idx)
Creates a new functional list with same elements as this list but with the element at indexidx
removed.private FList<E>
FList. removeRec(FList<E> fList, Object obj)
Helper function for remove elements.FList<E>
FList. replaceIdx(int idx, E elem)
Creates a new functional list with same elements as this list but with the element at positionidx
replaced by the given element.FList<E>
FList. reverse()
Creates a new functional list with the elements reversed.FList<E>
FList.Cons. tail()
Returns the tail list of this list.FList<E>
FList.Nil. tail()
Throws aNoSuchElementException
.abstract FList<E>
FList. tail()
Returns the tail list of this list.Methods in at.jku.ssw.fp.coll with parameters of type FList Modifier and Type Method Description FList<E>
FList.Builder. concat(FList<E> fList)
Adds all elements in the given list to this builder.private FList<E>
FList. removeRec(FList<E> fList, Object obj)
Helper function for remove elements.Method parameters in at.jku.ssw.fp.coll with type arguments of type FList Modifier and Type Method Description <R> FList<R>
FList. flatMap(Function<? super E,? extends FList<? extends R>> mapper)
Returns a functional list consisting of the results of replacing each element of this list with the contents of a mapped list produced by applying the provided mapping function to each element.Constructors in at.jku.ssw.fp.coll with parameters of type FList Constructor Description Cons(E head, FList<E> tail)
Private constructor initializing head and tail. -
Uses of FList in at.jku.ssw.fp.sect03_3
Methods in at.jku.ssw.fp.sect03_3 that return types with arguments of type FList Modifier and Type Method Description (package private) static Optional<FList<Pos>>
Demo2_NQueens. solveNQueens(FList<Pos> board, int col)
Solves N-Queens problem using immutable listsMethods in at.jku.ssw.fp.sect03_3 with parameters of type FList Modifier and Type Method Description private static boolean
Demo2_NQueens. isSafe(FList<Pos> board, int row, int col)
Checks if position is safe for setting queen.private static void
Demo2_NQueens. print(FList<Pos> board)
Prints the board.(package private) static <E> void
Demo1_FList. print1(FList<E> list)
(package private) static <E> void
Demo1_FList. print2(FList<E> list)
(package private) static Optional<FList<Pos>>
Demo2_NQueens. solveNQueens(FList<Pos> board, int col)
Solves N-Queens problem using immutable lists -
Uses of FList in at.jku.ssw.fp.sect04_2.fp
Fields in at.jku.ssw.fp.sect04_2.fp declared as FList Modifier and Type Field Description private FList<Results>
ResultsList. resultsList
The list of results for a set of students -
Uses of FList in at.jku.ssw.fp.sect05_3.parser
Fields in at.jku.ssw.fp.sect05_3.parser declared as FList Modifier and Type Field Description private FList<String>
ParseException. input
List of tokens leftFList<String>
Result. rest
The list of tokens not parsed yet.Methods in at.jku.ssw.fp.sect05_3.parser that return FList Modifier and Type Method Description FList<String>
ParseException. getInput()
Gets the list of tokens left.Methods in at.jku.ssw.fp.sect05_3.parser that return types with arguments of type FList Modifier and Type Method Description static <R> Parser<FList<R>>
Parser. mult(Parser<R> parser)
Creates a parser which applies the given parser as long as it is successful.Methods in at.jku.ssw.fp.sect05_3.parser with parameters of type FList Modifier and Type Method Description static <T> Result<T>
Result. failure(Exception excpt, FList<String> rest)
Creates a failed result consisting of an exception and the rest of the input.Result<Expr>
ExprParser. parse(FList<String> tokens)
Applies the expression parser on a list of tokens.static <T> Result<T>
Result. success(T result, FList<String> rest)
Creates a successful result consisting of a parse result and the rest of the input.Constructors in at.jku.ssw.fp.sect05_3.parser with parameters of type FList Constructor Description ParseException(String message, FList<String> input)
Constructor setting a message and the list of tokens left.Result(Exception excpt, FList<String> rest)
Private constructor creating a failed result object.Result(T result, FList<String> rest)
Private constructor creating a successful result object. -
Uses of FList in at.jku.ssw.fp.sect06_3
Fields in at.jku.ssw.fp.sect06_3 declared as FList Modifier and Type Field Description private FList<String>
ParseException. input
List of tokens leftFList<String>
Result. rest
The list of tokens not parsed yet.Methods in at.jku.ssw.fp.sect06_3 that return FList Modifier and Type Method Description FList<String>
ParseException. getInput()
Gets the list of tokens left.FList<Person>
Family. getMembers()
Returns the member of the family.FList<Present>
Person. getPresents()
Returns presents of this persons.Methods in at.jku.ssw.fp.sect06_3 that return types with arguments of type FList Modifier and Type Method Description static <R> Parser<FList<R>>
Parser. fmultRec(Parser<R> parser)
Recursive variant ofParser.mult(Parser)
.static <R> Parser<FList<R>>
Parser. mult(Parser<R> parser)
Creates a parser which applies the given parser as long as it is successful.Methods in at.jku.ssw.fp.sect06_3 with parameters of type FList Modifier and Type Method Description static <T> Result<T>
Result. failure(Exception excpt, FList<String> rest)
Creates a failed result consisting of an exception and the rest of the input.static <T> Result<T>
Result. success(T result, FList<String> rest)
Creates a successful result consisting of a parse result and the rest of the input.Constructors in at.jku.ssw.fp.sect06_3 with parameters of type FList Constructor Description ParseException(String message, FList<String> input)
Constructor setting a message and the list of tokens left.Result(Exception excpt, FList<String> rest)
Private constructor creating a failed result object.Result(T result, FList<String> rest)
Private constructor creating a successful result object. -
Uses of FList in at.jku.ssw.fp.sect11_3.check4j
Fields in at.jku.ssw.fp.sect11_3.check4j with type parameters of type FList Modifier and Type Field Description static Gen<FList<Integer>>
Gens. intLists
A generator for list of integers from 0 to 9static Shrinker<FList<Integer>>
Shrinkers. intListShrinker
A shrinker for lists of integersMethods in at.jku.ssw.fp.sect11_3.check4j that return types with arguments of type FList Modifier and Type Method Description static <E> Shrinker<FList<E>>
Shrinkers. fListShrinker()
A shrinker forFList
lists.static <E> Shrinker<FList<E>>
Shrinkers. fListShrinker(Shrinker<E> eShrinker)
A shrinker forFList
lists where a given shrinker is used for shrinking the elements.static <A> Gen<FList<A>>
Gens. lists(int maxLength, Gen<A> elemGen)
Creates a generator for generating lists of given maximum length.
-