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 ofICSSWriteable
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:
- 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 boolean
equals(Object o)
String
getAsCSSString(ICSSWriterSettings aSettings, int nIndentLevel)
Get the contents of this object as a serialized CSS string for writing to an output.CSSSourceLocation
getSourceLocation()
int
hashCode()
void
setSourceLocation(CSSSourceLocation aSourceLocation)
Set the source location of the object, determined while parsing.String
toString()
-
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:ICSSWriteable
Get the contents of this object as a serialized CSS string for writing to an output.- Specified by:
getAsCSSString
in 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:
getSourceLocation
in interfaceICSSSourceLocationAware
- Returns:
- The source location of this object when it was read by the parser.
May be
null
if an object was not read but manually created.
-
setSourceLocation
public final void setSourceLocation(@Nullable CSSSourceLocation aSourceLocation)
Description copied from interface:ICSSSourceLocationAware
Set the source location of the object, determined while parsing.- Specified by:
setSourceLocation
in interfaceICSSSourceLocationAware
- Parameters:
aSourceLocation
- The source location to use. May benull
.
-
equals
public boolean equals(Object o)
- Specified by:
equals
in interfaceCollection<DATATYPE extends ICSSWriteable>
- Specified by:
equals
in interfaceList<DATATYPE extends ICSSWriteable>
- Overrides:
equals
in classArrayList<DATATYPE extends ICSSWriteable>
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceCollection<DATATYPE extends ICSSWriteable>
- Specified by:
hashCode
in interfaceList<DATATYPE extends ICSSWriteable>
- Overrides:
hashCode
in classArrayList<DATATYPE extends ICSSWriteable>
-
toString
public String toString()
- Overrides:
toString
in classAbstractCollection<DATATYPE extends ICSSWriteable>
-
-