Eclipse Platform
Release 3.3

org.eclipse.core.databinding.observable.list
Class ListDiffEntry

java.lang.Object
  extended byorg.eclipse.core.databinding.observable.list.ListDiffEntry

public abstract class ListDiffEntry
extends Object

A single addition of an element to a list or removal of an element from a list.

Since:
1.0

Constructor Summary
ListDiffEntry()
           
 
Method Summary
abstract  Object getElement()
           
abstract  int getPosition()
           
abstract  boolean isAddition()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ListDiffEntry

public ListDiffEntry()
Method Detail

getPosition

public abstract int getPosition()
Returns:
the 0-based position of the addition or removal

isAddition

public abstract boolean isAddition()
Returns:
true if this represents an addition, false if this represents a removal

getElement

public abstract Object getElement()
Returns:
the element that was added or removed

toString

public String toString()
See Also:
Object.toString()

Eclipse Platform
Release 3.3

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.