Coverage Report - com.sun.javafx.runtime.location.SequenceLocation
 
Classes in this File Line Coverage Branch Coverage Complexity
SequenceLocation
N/A
N/A
0
 
 1  
 /*
 2  
  * Copyright 2007 Sun Microsystems, Inc.  All Rights Reserved.
 3  
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 4  
  *
 5  
  * This code is free software; you can redistribute it and/or modify it
 6  
  * under the terms of the GNU General Public License version 2 only, as
 7  
  * published by the Free Software Foundation.  Sun designates this
 8  
  * particular file as subject to the "Classpath" exception as provided
 9  
  * by Sun in the LICENSE file that accompanied this code.
 10  
  *
 11  
  * This code is distributed in the hope that it will be useful, but WITHOUT
 12  
  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 13  
  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 14  
  * version 2 for more details (a copy is included in the LICENSE file that
 15  
  * accompanied this code).
 16  
  *
 17  
  * You should have received a copy of the GNU General Public License version
 18  
  * 2 along with this work; if not, write to the Free Software Foundation,
 19  
  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 20  
  *
 21  
  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
 22  
  * CA 95054 USA or visit www.sun.com if you need additional information or
 23  
  * have any questions.
 24  
  */
 25  
 
 26  
 package com.sun.javafx.runtime.location;
 27  
 
 28  
 import com.sun.javafx.runtime.sequence.Sequence;
 29  
 import com.sun.javafx.runtime.sequence.SequencePredicate;
 30  
 
 31  
 /**
 32  
  * A sequence-valued Location.  Exposes analogues of the mutative methods from Sequence, which modify the sequence
 33  
  * value and notify the appropriate change listeners.  If the change listeners implement the SequenceChangeListener
 34  
  * interface, the additional methods in SequenceChangeListener for insert, delete, and update will be called.
 35  
  *
 36  
  * @author Brian Goetz
 37  
  */
 38  
 public interface SequenceLocation<T> extends Location, Iterable<T>, ObjectLocation<Sequence<T>> {
 39  
     
 40  
     T get(int position);
 41  
 
 42  
     Sequence<T> getAsSequence();
 43  
 
 44  
     public void addChangeListener(SequenceChangeListener<T> listener);
 45  
 
 46  
     public void removeChangeListener(SequenceChangeListener<T> listener);
 47  
 
 48  
     public Sequence<T> setAsSequence(Sequence<? extends T> value);
 49  
 
 50  
     public Sequence<T> setAsSequenceFromLiteral(Sequence<? extends T> value);
 51  
 
 52  
     public T set(int position, T value);
 53  
 
 54  
     public Sequence<T> getSlice(int startPos, int endPos);
 55  
 
 56  
     public Sequence<? extends T> replaceSlice(int startPos, int endPos, Sequence<? extends T> newValues);
 57  
 
 58  
     public void delete(int position);
 59  
 
 60  
     public void deleteSlice(int startPos, int endPos);
 61  
 
 62  
     public void deleteAll();
 63  
 
 64  
     public void deleteValue(T value);
 65  
 
 66  
     public void delete(SequencePredicate<T> predicate);
 67  
 
 68  
     public void insert(T value);
 69  
 
 70  
     public void insert(Sequence<? extends T> values);
 71  
 
 72  
     public void insertFirst(T value);
 73  
 
 74  
     public void insertFirst(Sequence<? extends T> values);
 75  
 
 76  
     public void insertBefore(T value, int position);
 77  
 
 78  
     public void insertBefore(T value, SequencePredicate<T> predicate);
 79  
 
 80  
     public void insertBefore(Sequence<? extends T> values, int position);
 81  
 
 82  
     public void insertBefore(Sequence<? extends T> values, SequencePredicate<T> predicate);
 83  
 
 84  
     public void insertAfter(T value, int position);
 85  
 
 86  
     public void insertAfter(T value, SequencePredicate<T> predicate);
 87  
 
 88  
     public void insertAfter(Sequence<? extends T> values, int position);
 89  
 
 90  
     public void insertAfter(Sequence<? extends T> values, SequencePredicate<T> predicate);
 91  
 }