public enum GraphProtocol extends Enum<GraphProtocol>
Enum Constant and Description |
---|
GRAPHSON_1_0
GraphSON1 is unsafe since it doesn't have an advanced typing format which causes type loss when
transferring data to the server or receiving data.
|
GRAPHSON_2_0
Improvement of the GraphSON1 format that brings strong data-type information support.
|
Modifier and Type | Method and Description |
---|---|
String |
getProtocolReference() |
static GraphProtocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GraphProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GraphProtocol GRAPHSON_1_0
GRAPHSON_2_0
instead.public static final GraphProtocol GRAPHSON_2_0
public static GraphProtocol[] values()
for (GraphProtocol c : GraphProtocol.values()) System.out.println(c);
public static GraphProtocol 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 String getProtocolReference()
Copyright © 2012–2018. All rights reserved.