public class CweSet
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
CweSet() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCwe(java.lang.String cwe)
Adds a CWE to the set.
|
java.util.Set<java.lang.String> |
getEntries()
Get the value of CWEs.
|
java.util.Map<java.lang.String,java.lang.String> |
getFullCwes()
Returns a map of CWE-ID and title.
|
boolean |
isEmpty()
Returns
true if there are no CWEs; otherwise
false. |
java.util.stream.Stream<java.lang.String> |
stream()
Streams the CWEs.
|
java.lang.String |
toString() |
public java.util.Set<java.lang.String> getEntries()
public void addCwe(java.lang.String cwe)
cwe - new CWE to addpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.stream.Stream<java.lang.String> stream()
public java.util.Map<java.lang.String,java.lang.String> getFullCwes()
public boolean isEmpty()
true if there are no CWEs; otherwise
false.true if there are no CWEs; otherwise
falseCopyright© 2012-21 Jeremy Long. All Rights Reserved.