org.malai.mapping
Class List2ListMapping<E,F>

java.lang.Object
  extended by org.malai.mapping.List2ObjectMapping<E,java.util.List<F>>
      extended by org.malai.mapping.List2ListMapping<E,F>
Type Parameters:
E - The type of the source element of the mapping.
F - The type of the target element of the mapping.
All Implemented Interfaces:
IMapping
Direct Known Subclasses:
SymmetricList2ListMapping, ViewList2TooltipableList

public abstract class List2ListMapping<E,F>
extends List2ObjectMapping<E,java.util.List<F>>

Defines a mapping established between two lists.

This file is part of Malai.
Copyright (c) 2009-2012 Arnaud BLOUIN

Malai is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Malai is distributed without any warranty; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

05/15/2010

Since:
0.2
Version:
0.2
Author:
Arnaud BLOUIN

Field Summary
 
Fields inherited from class org.malai.mapping.List2ObjectMapping
source, target
 
Constructor Summary
List2ListMapping(java.util.List<E> source, java.util.List<F> target)
          Creates the mapping.
 
Method Summary
 
Methods inherited from class org.malai.mapping.List2ObjectMapping
clear, getSource, getTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.malai.mapping.IMapping
init, onListCleaned, onObjectAdded, onObjectModified, onObjectMoved, onObjectRemoved, onObjectReplaced
 

Constructor Detail

List2ListMapping

public List2ListMapping(java.util.List<E> source,
                        java.util.List<F> target)
Creates the mapping.

Parameters:
source - The source list.
target - The target list.
Throws:
java.lang.IllegalArgumentException - If one of the given lists is null or if they are the same object.
Since:
0.2