Class Length

java.lang.Object
immutable.list.apps.assignment.Length

public class Length
extends java.lang.Object
Author:
__STUDENT_NAME__, Dennis Cosgrove (http://www.cse.wustl.edu/~cosgroved/)
  • Constructor Summary

    Constructors 
    Constructor Description
    Length()  
  • Method Summary

    Modifier and Type Method Description
    static <E> int length​(ImmutableList<E> list)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • length

      public static <E> int length​(ImmutableList<E> list)
      Type Parameters:
      E - the class of Objects in the ImmutableList
      Parameters:
      list - the list to calculate its length
      Returns:
      the length of the specified list