public enum DiffSegmentType extends Enum<DiffSegmentType>
Enum Constant and Description |
---|
ADDED
Indicates the lines in the segment were added in the destination file.
|
CONTEXT
Indicates the lines in the segment are context, existing unchanged in both the source and destination.
|
REMOVED
Indicates the lines in the segment were removed in the destination file.
|
Modifier and Type | Method and Description |
---|---|
static DiffSegmentType |
fromId(int id) |
int |
getId() |
boolean |
isInDestination() |
boolean |
isInSource() |
static DiffSegmentType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DiffSegmentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DiffSegmentType ADDED
public static final DiffSegmentType CONTEXT
public static final DiffSegmentType REMOVED
public static DiffSegmentType[] values()
for (DiffSegmentType c : DiffSegmentType.values()) System.out.println(c);
public static DiffSegmentType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static DiffSegmentType fromId(int id)
public int getId()
public boolean isInDestination()
public boolean isInSource()
Copyright © 2019 Atlassian. All rights reserved.