package de.lmu.ifi.dbs.elki.parser;

import de.lmu.ifi.dbs.elki.data.DatabaseObject;
import de.lmu.ifi.dbs.elki.utilities.pairs.Pair;

import java.util.List;

/**
 * Provides a list of database objects and labels associated with these objects.
 * 
 * @author Elke Achtert 
 * @param <O> object type
 */
public class ParsingResult<O extends DatabaseObject>
{
    /**
     * The list of database objects and labels associated with these objects.
     */
    private final List<Pair<O,List<String>>> objectAndLabelList;

    /**
     * Provides a list of database objects and labels associated with these
     * objects.
     * 
     * @param objectAndLabelList
     *            the list of database objects and labels associated with these
     *            objects
     */
    public ParsingResult(List<Pair<O,List<String>>> objectAndLabelList)
    {
        this.objectAndLabelList = objectAndLabelList;
    }

    /**
     * Returns the list of database objects and labels associated with these
     * objects.
     * 
     * @return the list of database objects and labels associated with these
     *         objects
     */
    public List<Pair<O,List<String>>> getObjectAndLabelList()
    {
        return objectAndLabelList;
    }

    /**
     * Returns a string representation of the object.
     * 
     * @return a string representation of the object.
     */
    @Override
    public String toString()
    {
        return objectAndLabelList.toString();
    }
    
    /**
     * Provides the number of objects listed in this parsing result.
     * 
     * @return the number of objects listed in this parsing result
     */
    public int size(){
      return this.objectAndLabelList.size();
    }
}

@@ -264,17 +264,16 @@
  Achtert
- 
 %0A * @par
@@ -351,21 +351,17 @@
 ect%3E
-%0A
+ 
 %7B%0A  
- 
- 
 /**%0A
-  
    *
@@ -435,23 +435,19 @@
 cts.%0A   
-  
 */%0A
-  
   privat
@@ -458,32 +458,33 @@
 nal List%3CPair%3CO,
+ 
 List%3CString%3E%3E%3E o
@@ -503,26 +503,22 @@
 lList;%0A%0A
-  
   /**%0A
-  
    * Pro
@@ -578,34 +578,32 @@
 d with these%0A   
-  
 * objects.%0A     
@@ -600,26 +600,22 @@
 cts.%0A   
-  
 * %0A   
- 
- 
 * @param
@@ -633,34 +633,16 @@
 abelList
-%0A     *           
  the lis
@@ -665,32 +665,44 @@
 jects and labels
+%0A   *       
  associated with
@@ -711,26 +711,8 @@
 hese
-%0A     *           
  obj
@@ -711,39 +711,35 @@
 hese objects%0A   
- 
- 
 */%0A
-  
   public Parsing
@@ -749,32 +749,33 @@
 ult(List%3CPair%3CO,
+ 
 List%3CString%3E%3E%3E o
@@ -792,31 +792,23 @@
 belList)
-%0A   
  %7B%0A    
- 
-   
 this.obj
@@ -845,33 +845,27 @@
 elList;%0A
-  
   %7D%0A%0A  
- 
- 
 /**%0A
-  
    * Ret
@@ -934,18 +934,16 @@
 hese%0A   
- 
- 
 * object
@@ -944,31 +944,27 @@
 objects.%0A   
-  
 * %0A
-  
    * @return
@@ -1029,18 +1029,16 @@
 hese%0A   
-  
 *       
@@ -1046,33 +1046,29 @@
  objects%0A   
-  
 */%0A  
- 
- 
 public List%3C
@@ -1074,16 +1074,17 @@
 %3CPair%3CO,
+ 
 List%3CStr
@@ -1113,27 +1113,19 @@
 elList()
-%0A    %7B%0A    
+ %7B%0A
     retu
@@ -1151,25 +1151,19 @@
 st;%0A
-  
   %7D%0A%0A  
- 
- 
 /**%0A
-  
    *
@@ -1209,34 +1209,30 @@
  object.%0A   
-  
 * %0A   
- 
- 
 * @return a 
@@ -1271,23 +1271,19 @@
 ect.%0A   
-  
 */%0A
-  
   @Overr
@@ -1286,18 +1286,16 @@
 verride%0A
-  
   public
@@ -1316,19 +1316,11 @@
 ng()
-%0A    %7B%0A    
+ %7B%0A
     
@@ -1363,27 +1363,17 @@
 ;%0A  
-  %7D%0A    %0A  
+%7D%0A%0A
   /**%0A
-  
    *
@@ -1438,23 +1438,19 @@
 ult.%0A   
-  
 * %0A
-  
    * @re
@@ -1509,23 +1509,19 @@
 sult%0A   
- 
- 
 */%0A
-  
   public
@@ -1531,20 +1531,19 @@
 t size()
+ 
 %7B%0A
-  
     retu
@@ -1581,12 +1581,9 @@
 ();%0A
-  
   %7D%0A%7D
-%0A

Reformat source code.