T - The CSP directive type@NotThreadSafe public abstract class AbstractCSPPolicy<T extends ICSPDirective> extends Object implements Serializable
| Constructor and Description |
|---|
AbstractCSPPolicy() |
| Modifier and Type | Method and Description |
|---|---|
AbstractCSPPolicy<T> |
addDirective(T aDirective) |
boolean |
equals(Object o) |
String |
getAsString() |
int |
getDirectiveCount() |
int |
hashCode() |
boolean |
isEmpty() |
boolean |
isNotEmpty() |
com.helger.commons.state.EChange |
removeAllDirectives() |
com.helger.commons.state.EChange |
removeDirective(T aDirective) |
com.helger.commons.state.EChange |
removeDirectiveAtIndex(int nIndex) |
String |
toString() |
public boolean isEmpty()
public boolean isNotEmpty()
@Nonnegative public int getDirectiveCount()
@Nonnull public AbstractCSPPolicy<T> addDirective(@Nonnull T aDirective)
@Nonnull public com.helger.commons.state.EChange removeDirective(@Nullable T aDirective)
@Nonnull public com.helger.commons.state.EChange removeDirectiveAtIndex(int nIndex)
@Nonnull public com.helger.commons.state.EChange removeAllDirectives()
Copyright © 2016–2019 Philip Helger. All rights reserved.