class ObjectID extends Object
MongoDB ObjectID
- Annotations
- @RawJSType() @native() @JSImport( "mongodb" , "ObjectID" )
- Alphabetic
- By Inheritance
- ObjectID
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
createFromHexString(hexString: String): ObjectID
Creates an ObjectID from a hex string representation of an ObjectID.
Creates an ObjectID from a hex string representation of an ObjectID.
- hexString
the given 24-byte hex string.
- returns
the created ObjectID
-
def
createFromTime(time: Integer): ObjectID
Creates an ObjectID from a second based number, with the rest of the ObjectID zeroed out.
Creates an ObjectID from a second based number, with the rest of the ObjectID zeroed out. Used for comparisons or sorting the ObjectID.
- time
an integer number representing a number of seconds.
- returns
the created ObjectID
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(otherID: ObjectID): Boolean
Compares the equality of this ObjectID with
otherID
.Compares the equality of this ObjectID with
otherID
.- otherID
the ObjectID instance to compare against.
- returns
the result of comparing two ObjectID’s
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
getTimestamp(): Date
Returns the generation date (accurate up to the second) that this ID was generated.
Returns the generation date (accurate up to the second) that this ID was generated.
- returns
the generation date
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
def
isValid(): Boolean
Checks if a value is a valid BSON ObjectId
Checks if a value is a valid BSON ObjectId
- returns
true if the value is a valid BSON ObjectId; returns false otherwise.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toHexString(): String
Returns the ObjectID id as a 24 byte hex string representation
Returns the ObjectID id as a 24 byte hex string representation
- returns
a 24 byte hex string representation
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
valueOf(): Any
- Definition Classes
- Object
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )