PathRef

mill.api.PathRef
See thePathRef companion object
case class PathRef extends PathRefApi

A wrapper around os.Path that calculates a sig (which ends up in the hashCode) based on the contents of the filesystem underneath it. Used to ensure filesystem changes can bust caches which are keyed off hashcodes.

Attributes

Companion
object
Source
PathRef.scala
Graph
Supertypes
trait Serializable
trait Serializable
trait Product
trait Equals
trait PathRefApi
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def hashCode(): Int

Calculates a hash code value for the object.

Calculates a hash code value for the object.

The default hashing algorithm is platform dependent.

Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

Attributes

Returns

the hash code value for this object.

Definition Classes
Any
Source
PathRef.scala

Attributes

Source
PathRef.scala
def remap: PathRef

Apply the current contextual path mapping to this PathRef. Updates mappedPath but does not recalculate the sig.

Apply the current contextual path mapping to this PathRef. Updates mappedPath but does not recalculate the sig.

Attributes

Source
PathRef.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
PathRef.scala
def validateSigs(): Boolean

Attributes

Source
PathRef.scala
def withRevalidate(revalidate: Revalidate): PathRef

Attributes

Source
PathRef.scala

Attributes

Source
PathRef.scala

Deprecated methods

def recomputeSig(): Int

Attributes

Deprecated
[Since version Mill after 1.4.0-M0] Use recompute instead
Source
PathRef.scala
override def sig: Int

Attributes

Deprecated
[Since version Mill after 1.4.0-M0] Use quickSig and fullSig instead.
Definition Classes
Source
PathRef.scala
def validate(): Boolean

Attributes

Deprecated
[Since version Mill after 1.4.0-M0] Use validateSigs instead
Source
PathRef.scala

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala