public class NElementCommentsImpl extends Object implements NElementComments
| Modifier and Type | Field and Description |
|---|---|
static NElementComments |
BLANK |
| Constructor and Description |
|---|
NElementCommentsImpl() |
NElementCommentsImpl(NElementComment[] leadingComments,
NElementComment[] trailingComments) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(NElementComments o) |
NElementComments |
concat(NElementComments other) |
static NElementComments |
concat(NElementCommentsImpl a,
NElementCommentsImpl b) |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isBlank() |
boolean |
isEmpty() |
List<NElementComment> |
leadingComments() |
static NElementComments |
ofLeading(NElementComment... all) |
static NElementComments |
ofTrailing(NElementComment... all) |
static NElementComments |
ofTrailing(NElementComment[] leading,
NElementComment[] trailing) |
String |
toString() |
List<NElementComment> |
trailingComments() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitfirstNonBlank, firstNonBlank, firstNonBlank, isBlank, isBlank, isBlank, isBlank, isBlank, isNonBlankpublic static final NElementComments BLANK
public NElementCommentsImpl()
public NElementCommentsImpl(NElementComment[] leadingComments, NElementComment[] trailingComments)
public static NElementComments ofLeading(NElementComment... all)
public static NElementComments ofTrailing(NElementComment... all)
public static NElementComments ofTrailing(NElementComment[] leading, NElementComment[] trailing)
public static NElementComments concat(NElementCommentsImpl a, NElementCommentsImpl b)
public NElementComments concat(NElementComments other)
public List<NElementComment> trailingComments()
trailingComments in interface NElementCommentspublic List<NElementComment> leadingComments()
leadingComments in interface NElementCommentspublic boolean isBlank()
isBlank in interface NBlankablepublic boolean isEmpty()
isEmpty in interface NElementCommentspublic int compareTo(NElementComments o)
compareTo in interface Comparable<NElementComments>Copyright © 2025 vpc open source initiative. All rights reserved.