Package com.helger.css.decl
Class CSSWritableList<DATATYPE extends ICSSWriteable>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<ELEMENTTYPE>
-
- com.helger.commons.collection.impl.CommonsArrayList<DATATYPE>
-
- com.helger.css.decl.CSSWritableList<DATATYPE>
-
- Type Parameters:
DATATYPE- The type of object to be handled.
- All Implemented Interfaces:
com.helger.commons.collection.impl.ICommonsCollection<DATATYPE>,com.helger.commons.collection.impl.ICommonsIterable<DATATYPE>,com.helger.commons.collection.impl.ICommonsList<DATATYPE>,com.helger.commons.lang.ICloneable<com.helger.commons.collection.impl.ICommonsList<DATATYPE>>,com.helger.commons.lang.IHasSize,ICSSSourceLocationAware,ICSSWriteable,Serializable,Cloneable,Iterable<DATATYPE>,Collection<DATATYPE>,List<DATATYPE>,RandomAccess
- Direct Known Subclasses:
CSSDeclarationList
@NotThreadSafe public class CSSWritableList<DATATYPE extends ICSSWriteable> extends com.helger.commons.collection.impl.CommonsArrayList<DATATYPE> implements ICSSSourceLocationAware, ICSSWriteable
Represents a list ofICSSWriteableobjects. This class emits all contained elements with a semicolon as separator but without any surrounding block elements.- Since:
- 5.0.0
- Author:
- Philip Helger
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description CSSWritableList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetAsCSSString(ICSSWriterSettings aSettings, int nIndentLevel)Get the contents of this object as a serialized CSS string for writing to an output.CSSSourceLocationgetSourceLocation()inthashCode()voidsetSourceLocation(CSSSourceLocation aSourceLocation)Set the source location of the object, determined while parsing.StringtoString()-
Methods inherited from class com.helger.commons.collection.impl.CommonsArrayList
createFiltered, createFiltered, createFiltered, createFiltered, createFiltered, createFiltered, createInstance, getClone
-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
Methods inherited from class java.util.AbstractCollection
containsAll
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface com.helger.commons.collection.impl.ICommonsCollection
addAll, addAll, addAll, addAll, addAll, addAll, addAll, addAll, addAllMapped, addAllMapped, addAllMapped, addAllMapped, addAllMapped, addAllMapped, addIf, addIfNotNull, addObject, getAtIndex, getAtIndex, getAtIndex, getAtIndexMapped, getAtIndexMapped, getAtIndexMapped, getAtIndexMapped, getCopyAsList, getCount, getSorted, iterator2, removeAll, removeObject, set, setAll, setAll, setAllMapped, setAllMapped
-
Methods inherited from interface com.helger.commons.collection.impl.ICommonsIterable
containsAny, containsNone, containsOnly, findAll, findAllInstanceOf, findAllMapped, findAllMapped, findAllMapped, findFirst, findFirst, findFirstIndex, findFirstMapped, findFirstMapped, findLastIndex, forEachBreakable, forEachByIndex, forEachThrowing, getCount
-
Methods inherited from interface com.helger.commons.collection.impl.ICommonsList
getAll, getAllInstanceOf, getAllMapped, getAllMapped, getAsUnmodifiable, getAtIndex, getFirst, getFirst, getLast, getLast, getSortedInline, removeAndReturnElementAtIndex, removeAtIndex, removeFirst, removeLast, reverse, setFirst, setLast, swapItems
-
Methods inherited from interface com.helger.css.ICSSWriteable
getAsCSSString, getAsCSSString
-
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
-
-
-
-
Method Detail
-
getAsCSSString
@Nonnull public String getAsCSSString(@Nonnull ICSSWriterSettings aSettings, @Nonnegative int nIndentLevel)
Description copied from interface:ICSSWriteableGet the contents of this object as a serialized CSS string for writing to an output.- Specified by:
getAsCSSStringin interfaceICSSWriteable- Parameters:
aSettings- The settings to be used to format the output. May not benull.nIndentLevel- The current indentation level- Returns:
- The content of this object as CSS string. Never
null.
-
getSourceLocation
@Nullable public final CSSSourceLocation getSourceLocation()
- Specified by:
getSourceLocationin interfaceICSSSourceLocationAware- Returns:
- The source location of this object when it was read by the parser.
May be
nullif an object was not read but manually created.
-
setSourceLocation
public final void setSourceLocation(@Nullable CSSSourceLocation aSourceLocation)
Description copied from interface:ICSSSourceLocationAwareSet the source location of the object, determined while parsing.- Specified by:
setSourceLocationin interfaceICSSSourceLocationAware- Parameters:
aSourceLocation- The source location to use. May benull.
-
equals
public boolean equals(Object o)
- Specified by:
equalsin interfaceCollection<DATATYPE extends ICSSWriteable>- Specified by:
equalsin interfaceList<DATATYPE extends ICSSWriteable>- Overrides:
equalsin classArrayList<DATATYPE extends ICSSWriteable>
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceCollection<DATATYPE extends ICSSWriteable>- Specified by:
hashCodein interfaceList<DATATYPE extends ICSSWriteable>- Overrides:
hashCodein classArrayList<DATATYPE extends ICSSWriteable>
-
toString
public String toString()
- Overrides:
toStringin classAbstractCollection<DATATYPE extends ICSSWriteable>
-
-