Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
    
  
  
  
  
    
  
  
    
    
    
    ParcelUuid
    class ParcelUuid : Parcelable
    
    This class is a Parcelable wrapper around UUID which is an immutable representation of a 128-bit universally unique identifier.
    Summary
    
      
        
          | Inherited constants | 
        
          | From class Parcelable
                
                  
                    | Int | CONTENTS_FILE_DESCRIPTOR
                         Descriptor bit used with describeContents(): indicates that the Parcelable object's flattened representation includes a file descriptor. |  
                    | Int | PARCELABLE_WRITE_RETURN_VALUE
                         Flag for use with writeToParcel: the object being written is a return value, that is the result of a function such as "Parcelable someFunction()", "void someFunction(out Parcelable)", or "void someFunction(inout Parcelable)". Some implementations may want to release resources at this point. |  | 
      
    
    
      
        
          | Public constructors | 
        
          | Constructor creates a ParcelUuid instance from the given UUID. | 
      
    
    
      
        
          | Public methods | 
        
          | Int |  | 
        
          | Boolean | Compares this ParcelUuid to another object for equality. | 
        
          | static ParcelUuid! | Creates a new ParcelUuid from a string representation of UUID. | 
        
          | UUID! | Get the UUIDrepresented by the ParcelUuid. | 
        
          | Int |  | 
        
          | String | Returns a string representation of the ParcelUuid For example: 0000110B-0000-1000-8000-00805F9B34FB will be the return value. | 
        
          | Unit |  | 
      
    
    
    Public constructors
    
      ParcelUuid
      
      ParcelUuid(uuid: UUID!)
      Constructor creates a ParcelUuid instance from the given UUID.
      
        
          
            | Parameters | 
          
            | uuid | UUID!: UUID | 
        
      
     
    Public methods
    
      describeContents
      
      fun describeContents(): Int
      
     
    
      equals
      
      fun equals(other: Any?): Boolean
      Compares this ParcelUuid to another object for equality. If object is not null, is a ParcelUuid instance, and all bits are equal, then true is returned.
      
        
          
            | Parameters | 
          
            | obj | the reference object with which to compare. | 
          
            | object | the Objectto compare to. This value may benull. | 
        
      
      
        
          
            | Return | 
          
            | Boolean | trueif this ParcelUuid is equal toobjectorfalseif not. | 
        
      
     
    
      fromString
      
      static fun fromString(uuid: String!): ParcelUuid!
      Creates a new ParcelUuid from a string representation of UUID.
      
        
          
            | Parameters | 
          
            | uuid | String!: the UUID string to parse. | 
        
      
      
      
        
          
            | Exceptions | 
          
            | java.lang.NullPointerException | if uuidisnull. | 
          
            | java.lang.IllegalArgumentException | if uuidis not formatted correctly. | 
        
      
     
    
      getUuid
      
      fun getUuid(): UUID!
      Get the UUID represented by the ParcelUuid.
      
        
          
            | Return | 
          
            | UUID! | UUID contained in the ParcelUuid. | 
        
      
     
    
      hashCode
      
      fun hashCode(): Int
      
        
          
            | Return | 
          
            | Int | a hash code value for this object. | 
        
      
     
    
      toString
      
      fun toString(): String
      Returns a string representation of the ParcelUuid For example: 0000110B-0000-1000-8000-00805F9B34FB will be the return value.
      
        
          
            | Return | 
          
            | String | a String instance. | 
        
      
     
    
    Properties
    
  
  
  
    
  
 
  
    
    
      
       
    
    
  
  
  Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
  Last updated 2025-02-10 UTC.
  
  
  
    
      [null,null,["Last updated 2025-02-10 UTC."],[],[]]