Record Class SetRecord
java.lang.Object
java.lang.Record
com.oracle.truffle.js.runtime.builtins.SetRecord
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.has()Returns the value of thehasrecord component.final inthashCode()Returns a hash code value for this object.keys()Returns the value of thekeysrecord component.set()Returns the value of thesetrecord component.doublesize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SetRecord
Creates an instance of aSetRecordrecord class.- Parameters:
set- the value for thesetrecord componentsize- the value for thesizerecord componenthas- the value for thehasrecord componentkeys- the value for thekeysrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
set
Returns the value of thesetrecord component.- Returns:
- the value of the
setrecord component
-
size
public double size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
has
Returns the value of thehasrecord component.- Returns:
- the value of the
hasrecord component
-
keys
Returns the value of thekeysrecord component.- Returns:
- the value of the
keysrecord component
-