public class

Guid

extends Object
java.lang.Object
   ↳ org.odata4j.core.Guid

Class Overview

A custom Guid class is necessary to interop with .net Guid strings incompatible with UUID.

Guids are equal if their string representations are equal.

Summary

Fields
private String value
Public Constructors
Guid()
Guid(String value)
Public Methods
boolean equals(Object other)
static Guid fromString(String value)
Return a Guid for a given string.
static Guid fromUUID(UUID uuid)
Return a Guid for a given UUID.
String getValue()
int hashCode()
static Guid randomGuid()
Generate a new Guid.
void setValue(String value)
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private String value

Public Constructors

public Guid ()

public Guid (String value)

Parameters
value

Public Methods

public boolean equals (Object other)

Parameters
other

public static Guid fromString (String value)

Return a Guid for a given string.

Parameters
value The guid's string representation
Returns
  • a new Guid

public static Guid fromUUID (UUID uuid)

Return a Guid for a given UUID.

Parameters
uuid An existing UUID
Returns
  • a new Guid

public String getValue ()

public int hashCode ()

public static Guid randomGuid ()

Generate a new Guid.

Returns
  • a new Guid

public void setValue (String value)

Parameters
value

public String toString ()