Package org.eclipse.tycho.test.util
Record Class P2RepositoryTool.RepositoryReference
java.lang.Object
java.lang.Record
org.eclipse.tycho.test.util.P2RepositoryTool.RepositoryReference
- Enclosing class:
- P2RepositoryTool
-
Constructor Summary
ConstructorsConstructorDescriptionRepositoryReference(String uri, int type, int options) Creates an instance of aRepositoryReferencerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intoptions()Returns the value of theoptionsrecord component.final StringtoString()Returns a string representation of this record class.inttype()Returns the value of thetyperecord component.uri()Returns the value of theurirecord component.
-
Constructor Details
-
RepositoryReference
Creates an instance of aRepositoryReferencerecord class.- Parameters:
uri- the value for theurirecord componenttype- the value for thetyperecord componentoptions- the value for theoptionsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
uri
Returns the value of theurirecord component.- Returns:
- the value of the
urirecord component
-
type
public int type()Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
options
public int options()Returns the value of theoptionsrecord component.- Returns:
- the value of the
optionsrecord component
-