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 UUID represented 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 Object to compare to. This value may be null. | 
          
        
      
      
        
          
            | Return | 
          
          
            Boolean | 
            true if this ParcelUuid is equal to object or false if 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 uuid is null. | 
          
          
            java.lang.IllegalArgumentException | 
            if uuid is 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.
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[]]