@Test public void min() { long start = System.currentTimeMillis(); UUID t1 = newTimeUUID( start, 0 ); UUID t2 = newTimeUUID( start, 1 ); assertEquals( t1, UUIDUtils.min( t1, t2 ) ); }
public static UUID min( UUID first, UUID second ) { if ( first == null ) { if ( second == null ) { return null; } return second; } if ( second == null ) { return first; } if ( compare( first, second ) < 0 ) { return first; } return second; }
UUIDUtils { public static UUID min( UUID first, UUID second ) { if ( first == null ) { if ( second == null ) { return null; } return second; } if ( second == null ) { return first; } if ( compare( first, second ) < 0 ) { return first; } return second; } }
UUIDUtils { public static UUID min( UUID first, UUID second ) { if ( first == null ) { if ( second == null ) { return null; } return second; } if ( second == null ) { return first; } if ( compare( first, second ) < 0 ) { return first; } return second; }  }
UUIDUtils { public static UUID min( UUID first, UUID second ) { if ( first == null ) { if ( second == null ) { return null; } return second; } if ( second == null ) { return first; } if ( compare( first, second ) < 0 ) { return first; } return second; }  static java.util.UUID newTimeUUID(); static UUID newTimeUUID( long ts, int timeoffset ); static UUID newTimeUUID( long ts ); static UUID maxTimeUUID( long ts ); static UUID min( UUID first, UUID second ); static UUID max( UUID first, UUID second ); static UUID decrement( UUID uuid ); static boolean isTimeBased( UUID uuid ); static long getTimestampInMillis( UUID uuid ); static long getTimestampInMicros( UUID uuid ); static UUID tryGetUUID( String s ); static boolean isUUID( String s ); static UUID tryExtractUUID( String s ); static UUID tryExtractUUID( String s, int offset ); static String toBase64( UUID id ); static UUID fromBase64( String str ); static int compare( UUID u1, UUID u2 ); static List<UUID> sort( List<UUID> uuids ); }
UUIDUtils { public static UUID min( UUID first, UUID second ) { if ( first == null ) { if ( second == null ) { return null; } return second; } if ( second == null ) { return first; } if ( compare( first, second ) < 0 ) { return first; } return second; }  static java.util.UUID newTimeUUID(); static UUID newTimeUUID( long ts, int timeoffset ); static UUID newTimeUUID( long ts ); static UUID maxTimeUUID( long ts ); static UUID min( UUID first, UUID second ); static UUID max( UUID first, UUID second ); static UUID decrement( UUID uuid ); static boolean isTimeBased( UUID uuid ); static long getTimestampInMillis( UUID uuid ); static long getTimestampInMicros( UUID uuid ); static UUID tryGetUUID( String s ); static boolean isUUID( String s ); static UUID tryExtractUUID( String s ); static UUID tryExtractUUID( String s, int offset ); static String toBase64( UUID id ); static UUID fromBase64( String str ); static int compare( UUID u1, UUID u2 ); static List<UUID> sort( List<UUID> uuids ); static final UUID MIN_TIME_UUID; static final UUID MAX_TIME_UUID; static final UUID ZERO_UUID; }