public enum DiffFileType extends Enum<DiffFileType>
Enum Constant and Description |
---|
FROM
The source ('from') file of the diff.
|
TO
The destination ('to') file of the diff,
|
Modifier and Type | Method and Description |
---|---|
static DiffFileType |
forSegmentType(DiffSegmentType segmentType)
Returns the default file type for a given
segmentType . |
static DiffFileType |
fromId(int id) |
int |
getId() |
static DiffFileType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DiffFileType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DiffFileType FROM
public static final DiffFileType TO
public static DiffFileType[] values()
for (DiffFileType c : DiffFileType.values()) System.out.println(c);
public static DiffFileType 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 null@Nonnull public static DiffFileType forSegmentType(@Nonnull DiffSegmentType segmentType)
segmentType
.segmentType
- segment type to matchIllegalArgumentException
- if there is no file type currently associated with segmentType
.@Nonnull public static DiffFileType fromId(int id)
public int getId()
Copyright © 2019 Atlassian. All rights reserved.