Iterable Immutable List Assignment

From CSE425S Wiki
Revision as of 08:21, 30 July 2019 by Dennis.cosgrove (talk | contribs) (Created page with "=Code To Implement= ==Lists== {{JavaToImplement|Lists|nil<br>cons<br>brackets|immutable.list.assignment}} ===nil=== <nowiki>public static <E> ImmutableList<E> nil()</nowiki>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Code To Implement

Lists

class: Lists.java Java.png
methods: nil
cons
brackets
package: immutable.list.assignment
source folder: src/main/java

nil

public static <E> ImmutableList<E> nil()

cons

public static <E> ImmutableList<E> cons(E head, ImmutableList<E> tail)

brackets

@SafeVarargs
public static <E> ImmutableList<E> brackets(E... elements

Test

class: ListsTestSuite.java Junit.png
package: immutable.list.assignment
source folder: src/test/java