Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is import java.util.UUID used for?

import java.util.UUID
public class Person implements Serializable {

        private UUID uuid;

        public Person() {
            uuid = UUID.fromString("3856c3da-ea56-4717-9f58-85f6c5f560a5");
        }

        public UUID getUuid() {
            return uuid;
        }
    }
like image 416
theJava Avatar asked Dec 31 '10 19:12

theJava


1 Answers

It helps you parse/generate a Universally unique identifier .

like image 190
ismail Avatar answered Oct 17 '22 04:10

ismail