public class SmartElementsList extends TreeSet<String> implements Serializable
SmartElementsList list = new SmartElementsList();
list.add("X");
assertTrue(list.contains("Cl"));
assertTrue(list.contains("Br"));
assertTrue(list.contains("I"));
assertTrue(list.contains("F"));
| Modifier and Type | Field and Description |
|---|---|
static String |
halogen |
TreeSet<String> |
halogens |
static String |
hydrogen |
| Constructor and Description |
|---|
SmartElementsList() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(String element) |
boolean |
contains(Object element) |
boolean |
equals(Object o) |
TreeSet<String> |
getHalogens() |
boolean |
hasOnlySpecifiedElements(SmartElementsList list) |
boolean |
hasSpecifiedElements(SmartElementsList list) |
void |
select(org.openscience.cdk.interfaces.IAtomContainer mol,
org.openscience.cdk.interfaces.IAtomContainer atomcontainer,
boolean found) |
void |
setHalogens(String[] halogens) |
void |
setHalogens(TreeSet<String> halogens) |
addAll, ceiling, clear, clone, comparator, descendingIterator, descendingSet, first, floor, headSet, headSet, higher, isEmpty, iterator, last, lower, pollFirst, pollLast, remove, size, spliterator, subSet, subSet, tailSet, tailSethashCode, removeAllcontainsAll, retainAll, toArray, toArray, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, hashCode, removeAll, retainAll, toArray, toArrayparallelStream, removeIf, streampublic boolean contains(Object element)
public void select(org.openscience.cdk.interfaces.IAtomContainer mol,
org.openscience.cdk.interfaces.IAtomContainer atomcontainer,
boolean found)
public boolean add(String element)
public void setHalogens(String[] halogens)
public boolean hasOnlySpecifiedElements(SmartElementsList list)
public boolean hasSpecifiedElements(SmartElementsList list)
public boolean equals(Object o)
equals in interface Collection<String>equals in interface Set<String>equals in class AbstractSet<String>Copyright © 2004–2018 Ideaconsult Ltd. All rights reserved.