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 of
ICSSWriteable objects. 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:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAsCSSString(ICSSWriterSettings aSettings, int nIndentLevel) Get the contents of this object as a serialized CSS string for writing to an output.final CSSSourceLocationinthashCode()final voidsetSourceLocation(CSSSourceLocation aSourceLocation) Set the source location of the object, determined while parsing.toString()Methods inherited from class com.helger.commons.collection.impl.CommonsArrayList
createFiltered, createFiltered, createFiltered, createFiltered, createFiltered, createFiltered, createInstance, getCloneMethods 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, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAllMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods 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, setAllMappedMethods 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, getCountMethods inherited from interface com.helger.commons.collection.impl.ICommonsList
getAll, getAllInstanceOf, getAllMapped, getAllMapped, getAsUnmodifiable, getAtIndex, getFirst, getFirst, getFirstOrNull, getLast, getLast, getLastOrNull, getSortedInline, removeAndReturnElementAtIndex, removeAtIndex, removeFirst, removeFirstOrNull, removeLast, removeLastOrNull, reverse, setFirst, setLast, swapItemsMethods inherited from interface com.helger.css.ICSSWriteable
getAsCSSString, getAsCSSStringMethods inherited from interface com.helger.commons.lang.IHasSize
isEmpty, isNotEmpty, sizeMethods 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
-
Constructor Details
-
CSSWritableList
public CSSWritableList()
-
-
Method Details
-
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
- 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
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
- 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
- Overrides:
toStringin classAbstractCollection<DATATYPE extends ICSSWriteable>
-