Segments

mill.define.Segments
See theSegments companion object
@Scaladoc(value = "/**\n * Models a path with the Mill build hierarchy, e.g. `amm.util[2.11].test.compile`.\n *\n * `.`-separated segments are [[Segment.Label]]s,\n * while `[]`-delimited segments are [[Segment.Cross]]s\n */")
case class Segments

Models a path with the Mill build hierarchy, e.g. amm.util[2.11].test.compile.

.-separated segments are Segment.Labels, while []-delimited segments are Segment.Crosss

Attributes

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

Members list

Value members

Concrete methods

def ++(other: Segment): Segments

Attributes

Source
Segments.scala
def ++(other: Seq[Segment]): Segments

Attributes

Source
Segments.scala
def ++(other: Segments): Segments

Attributes

Source
Segments.scala
def head: Segment

Attributes

Source
Segments.scala
def init: Segments

Attributes

Source
Segments.scala
def last: Label

Attributes

Source
Segments.scala
def parts: List[String]

Attributes

Source
Segments.scala
def render: String

Attributes

Source
Segments.scala
def startsWith(prefix: Segments): Boolean

Attributes

Source
Segments.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

lazy override val 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.

Source
Segments.scala