Skip to content

Commit

Permalink
annotate the purpose of the Inject classes
Browse files Browse the repository at this point in the history
  • Loading branch information
erikerlandson committed Dec 10, 2015
1 parent 4c9b73d commit 62505f4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ package tree {
import tree._

package infra {
/** Dependency injection for [[IncrementMap]]. Supplies implementations of all abstract methods */
class Inject[K, V](val keyOrdering: Ordering[K], val valueMonoid: Monoid[V])
extends Serializable {
def iNode(clr: Color, dat: Data[K], ls: Node[K], rs: Node[K]) =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ package tree {
import tree._

package infra {
/** Dependency injection for [[NearestSet]]. Supplies implementations of all abstract methods */
class InjectSet[K](val keyOrdering: Numeric[K]) extends Serializable {
def iNode(clr: Color, dat: Data[K], ls: Node[K], rs: Node[K]) =
new InjectSet[K](keyOrdering) with INodeNear[K] with NearestSet[K] {
Expand All @@ -161,6 +162,7 @@ package infra {
}
}

/** Dependency injection for [[NearestMap]]. Supplies implementations of all abstract methods */
class InjectMap[K, V](val keyOrdering: Numeric[K]) extends Serializable {
def iNode(clr: Color, dat: Data[K], ls: Node[K], rs: Node[K]) =
new InjectMap[K, V](keyOrdering) with INodeNearMap[K, V] with NearestMap[K, V] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ package infra {
}
}

/** Dependency injection for [[OrderedSet]]. Supplies implementations of all abstract methods */
class InjectSet[K](val keyOrdering: Ordering[K]) extends Serializable {
def iNode(clr: Color, dat: Data[K], ls: Node[K], rs: Node[K]) =
new InjectSet[K](keyOrdering) with INode[K] with OrderedSet[K] {
Expand All @@ -121,6 +122,7 @@ package infra {
}
}

/** Dependency injection for [[OrderedMap]]. Supplies implementations of all abstract methods */
class InjectMap[K, V](val keyOrdering: Ordering[K]) extends Serializable {
def iNode(clr: Color, dat: Data[K], ls: Node[K], rs: Node[K]) =
new InjectMap[K, V](keyOrdering) with INodeMap[K, V] with OrderedMap[K, V] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ import tree._
package infra {
import com.twitter.algebird.maps.ordered.tree.DataMap

/** Dependency injection for [[PrefixSumMap]]. Supplies implementations of all abstract methods */
class Inject[K, V, P](val keyOrdering: Ordering[K], val prefixAggregator: MonoidAggregator[V, P, P])
extends Serializable {
def iNode(clr: Color, dat: Data[K], ls: Node[K], rs: Node[K]) =
Expand Down

0 comments on commit 62505f4

Please sign in to comment.