Ignore:
Timestamp:
09/19/12 16:25:42 (12 years ago)
Author:
sherbold
Message:
  • TextInput? now returns an unmodifiable view of the internal event list
  • code documentation and formating
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/gui/TextInput.java

    r786 r830  
    22package de.ugoe.cs.quest.eventcore.gui; 
    33 
     4import java.util.Collections; 
    45import java.util.List; 
    56 
     
    138139    /** 
    139140     * <p> 
    140      * Returns the events of which this {@link TextInput} consists. 
     141     * Returns the events of which this {@link TextInput} consists. The returned list is immutable. 
    141142     * </p> 
    142143     *  
     
    144145     */ 
    145146    public List<Event> getTextInputEvents() { 
    146         // TODO should return an immutable view on the list 
    147         return textInputEvents; 
     147        return Collections.unmodifiableList(textInputEvents); 
    148148    } 
    149149 
Note: See TracChangeset for help on using the changeset viewer.