Skip to content

Commit 52a61ae

Browse files
committed
ObjectUuid: remove useless methods
1 parent 89c38b9 commit 52a61ae

File tree

2 files changed

+1
-60
lines changed

2 files changed

+1
-60
lines changed

modules/typed-ids/src/main/java/org/framefork/typedIds/uuid/ObjectUuid.java

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -70,65 +70,6 @@ public UUID toNativeUuid()
7070
return inner;
7171
}
7272

73-
/**
74-
* Returns the least significant 64 bits of this UUID's 128 bit value.
75-
*
76-
* @return The least significant 64 bits of this UUID's 128 bit value
77-
*/
78-
public long getLeastSignificantBits()
79-
{
80-
return inner.getLeastSignificantBits();
81-
}
82-
83-
/**
84-
* Returns the most significant 64 bits of this UUID's 128 bit value.
85-
*
86-
* @return The most significant 64 bits of this UUID's 128 bit value
87-
*/
88-
public long getMostSignificantBits()
89-
{
90-
return inner.getMostSignificantBits();
91-
}
92-
93-
/**
94-
* The version number associated with this {@code ObjectUuid}. The version
95-
* number describes how this {@code ObjectUuid} was generated.
96-
* <p>
97-
* The version number has the following meaning:
98-
* <ul>
99-
* <li>1 Time-based UUID
100-
* <li>2 DCE security UUID
101-
* <li>3 Name-based UUID
102-
* <li>4 Randomly generated UUID
103-
* </ul>
104-
*
105-
* @return The version number of this {@code ObjectUuid}
106-
*/
107-
public int version()
108-
{
109-
return inner.version();
110-
}
111-
112-
/**
113-
* The variant number associated with this {@code ObjectUuid}. The variant
114-
* number describes the layout of the {@code ObjectUuid}.
115-
* <p>
116-
* The variant number has the following meaning:
117-
* <ul>
118-
* <li>0 Reserved for NCS backward compatibility
119-
* <li>2 <a href="http://www.ietf.org/rfc/rfc4122.txt">IETF&nbsp;RFC&nbsp;4122</a>
120-
* (Leach-Salz), used by this class
121-
* <li>6 Reserved, Microsoft Corporation backward compatibility
122-
* <li>7 Reserved for future definition
123-
* </ul>
124-
*
125-
* @return The variant number of this {@code ObjectUuid}
126-
*/
127-
public int variant()
128-
{
129-
return inner.variant();
130-
}
131-
13273
/**
13374
* Compares this UUID with the specified UUID.
13475
*

modules/typed-ids/src/test/java/org/framefork/typedIds/uuid/ObjectUuidTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public void generateRandom()
2323
{
2424
ObjectUuidMock id = ObjectUuidMock.random();
2525
Assertions.assertNotNull(id);
26-
assertThat(id.version()).isEqualTo(7);
26+
assertThat(id.toNativeUuid().version()).isEqualTo(7);
2727
}
2828

2929
}

0 commit comments

Comments
 (0)