public static enum SyncRepositoryRequest.SyncMergeStrategy extends Enum<SyncRepositoryRequest.SyncMergeStrategy> implements BmcEnum
If fetch and merge is passed in, the changes from the upstream will be fetched and merged into the destination branch. If discard is passed in, the changes in the fork will be overwritten with the changes brought in from the upstream.
Enum Constant and Description |
---|
Discard |
FetchAndMerge |
Modifier and Type | Method and Description |
---|---|
static SyncRepositoryRequest.SyncMergeStrategy |
create(String key) |
String |
getValue() |
static SyncRepositoryRequest.SyncMergeStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SyncRepositoryRequest.SyncMergeStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SyncRepositoryRequest.SyncMergeStrategy FetchAndMerge
public static final SyncRepositoryRequest.SyncMergeStrategy Discard
public static SyncRepositoryRequest.SyncMergeStrategy[] values()
for (SyncRepositoryRequest.SyncMergeStrategy c : SyncRepositoryRequest.SyncMergeStrategy.values()) System.out.println(c);
public static SyncRepositoryRequest.SyncMergeStrategy 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 SyncRepositoryRequest.SyncMergeStrategy create(String key)
Copyright © 2016–2024. All rights reserved.