ILIAS  release_7 Revision v7.30-3-g800a261c036
ILIAS\Data\UUID\Uuid Interface Reference
+ Inheritance diagram for ILIAS\Data\UUID\Uuid:
+ Collaboration diagram for ILIAS\Data\UUID\Uuid:

Public Member Functions

 compareTo (Uuid $other)
 Compares this UUID to the specified UUID. More...
 
 equals (Uuid $other)
 Compares this object to the specified object. More...
 
 toString ()
 Converts this UUID into a string representation. More...
 

Detailed Description

Definition at line 11 of file Uuid.php.

Member Function Documentation

◆ compareTo()

ILIAS\Data\UUID\Uuid::compareTo ( Uuid  $other)

Compares this UUID to the specified UUID.

The first of two UUIDs is greater than the second if the most significant field in which the UUIDs differ is greater for the first UUID.

  • Q. What's the value of being able to sort UUIDs?
  • A. Use them as keys in a B-Tree or similar mapping.
Parameters
Uuid$otherUUID to which this UUID is compared
Returns
int -1, 0 or 1 as this UUID is less than, equal to, or greater than $uuid

Implemented in ILIAS\Data\UUID\RamseyUuidWrapper.

◆ equals()

ILIAS\Data\UUID\Uuid::equals ( Uuid  $other)

Compares this object to the specified object.

The result is true if and only if the argument is not null, is a UUID object, has the same variant, and contains the same value, bit for bit, as this UUID.

Parameters
Uuid$other
Returns
bool True if $other is equal to this UUID

Implemented in ILIAS\Data\UUID\RamseyUuidWrapper.

◆ toString()

ILIAS\Data\UUID\Uuid::toString ( )

Converts this UUID into a string representation.

Returns
string

Implemented in ILIAS\Data\UUID\RamseyUuidWrapper.


The documentation for this interface was generated from the following file: