Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

freemarker.template.utility
Class Collections12.SingletonList  view Collections12.SingletonList download Collections12.SingletonList.java

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byfreemarker.template.utility.Collections12.SingletonList
All Implemented Interfaces:
java.util.Collection, java.lang.Iterable, java.util.List, java.io.Serializable
Enclosing class:
Collections12

private static class Collections12.SingletonList
extends java.util.AbstractList
implements java.io.Serializable


Nested Class Summary
 
Nested classes inherited from class java.util.AbstractList
 
Field Summary
private  java.lang.Object element
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
(package private) Collections12.SingletonList(java.lang.Object obj)
           
 
Method Summary
 boolean contains(java.lang.Object obj)
          Test whether this list contains a given object as one of its elements.
 java.lang.Object get(int index)
          Returns the elements at the specified position in the list.
 int size()
          Get the number of elements in this list.
 
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Field Detail

element

private final java.lang.Object element
Constructor Detail

Collections12.SingletonList

Collections12.SingletonList(java.lang.Object obj)
Method Detail

size

public int size()
Description copied from interface: java.util.List
Get the number of elements in this list. If the list contains more than Integer.MAX_VALUE elements, return Integer.MAX_VALUE.

Specified by:
size in interface java.util.List

contains

public boolean contains(java.lang.Object obj)
Description copied from interface: java.util.List
Test whether this list contains a given object as one of its elements. This is defined as the existence of an element e such that o == null ? e == null : o.equals(e).

Specified by:
contains in interface java.util.List

get

public java.lang.Object get(int index)
Description copied from class: java.util.AbstractList
Returns the elements at the specified position in the list.

Specified by:
get in interface java.util.List