|
|||||||||||||||||||
| 30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| Elements.java | - | 36.4% | 36.4% | 36.4% |
|
||||||||||||||
| 1 |
/*
|
|
| 2 |
* Joey and its relative products are published under the terms
|
|
| 3 |
* of the Apache Software License.
|
|
| 4 |
*/
|
|
| 5 |
/*
|
|
| 6 |
* Created on 2004/02/21
|
|
| 7 |
*/
|
|
| 8 |
package org.asyrinx.brownie.core.sql2;
|
|
| 9 |
|
|
| 10 |
import java.util.ArrayList;
|
|
| 11 |
import java.util.Iterator;
|
|
| 12 |
import java.util.List;
|
|
| 13 |
|
|
| 14 |
/**
|
|
| 15 |
* @author akima
|
|
| 16 |
*/
|
|
| 17 |
public class Elements { |
|
| 18 |
|
|
| 19 |
/**
|
|
| 20 |
*
|
|
| 21 |
*/
|
|
| 22 | 44 |
public Elements() {
|
| 23 | 44 |
super();
|
| 24 |
} |
|
| 25 |
|
|
| 26 |
protected final List elementList = new ArrayList(); |
|
| 27 |
|
|
| 28 | 0 |
protected void addImpl(String element) { |
| 29 | 0 |
elementList.add(element); |
| 30 |
} |
|
| 31 |
|
|
| 32 | 47 |
protected void addImpl(Object object) { |
| 33 | 47 |
elementList.add(object); |
| 34 |
} |
|
| 35 |
|
|
| 36 | 8 |
protected void addImpl(Elements elements) { |
| 37 | 8 |
elementList.add(elements); |
| 38 |
} |
|
| 39 |
|
|
| 40 |
/**
|
|
| 41 |
*
|
|
| 42 |
*/
|
|
| 43 | 0 |
public void clear() { |
| 44 | 0 |
elementList.clear(); |
| 45 |
} |
|
| 46 |
|
|
| 47 |
/**
|
|
| 48 |
* @param o
|
|
| 49 |
* @return
|
|
| 50 |
*/
|
|
| 51 | 0 |
public boolean contains(Object o) { |
| 52 | 0 |
return elementList.contains(o);
|
| 53 |
} |
|
| 54 |
|
|
| 55 |
/**
|
|
| 56 |
* @param o
|
|
| 57 |
* @return
|
|
| 58 |
*/
|
|
| 59 | 0 |
public int indexOf(Object o) { |
| 60 | 0 |
return elementList.indexOf(o);
|
| 61 |
} |
|
| 62 |
|
|
| 63 |
/**
|
|
| 64 |
* @return
|
|
| 65 |
*/
|
|
| 66 | 0 |
public boolean isEmpty() { |
| 67 | 0 |
return elementList.isEmpty();
|
| 68 |
} |
|
| 69 |
|
|
| 70 |
/**
|
|
| 71 |
* @return
|
|
| 72 |
*/
|
|
| 73 | 44 |
public Iterator iterator() {
|
| 74 | 44 |
return elementList.iterator();
|
| 75 |
} |
|
| 76 |
|
|
| 77 |
/**
|
|
| 78 |
* @param o
|
|
| 79 |
* @return
|
|
| 80 |
*/
|
|
| 81 | 0 |
public boolean remove(Object o) { |
| 82 | 0 |
return elementList.remove(o);
|
| 83 |
} |
|
| 84 |
|
|
| 85 |
/**
|
|
| 86 |
* @return
|
|
| 87 |
*/
|
|
| 88 | 0 |
public int size() { |
| 89 | 0 |
return elementList.size();
|
| 90 |
} |
|
| 91 |
|
|
| 92 |
} |
|
||||||||||