ConfigPredicate

An abstract class representing a boolean predicate in the Grader assignment configuration.

This is comprised of a value and an operation, and can be used to write predicated behaviors in the config when running the grading pipeline.

Parameters

T

The type of object

Inheritors

Constructors

Link copied to clipboard
protected constructor()

Types

Link copied to clipboard

A predicate which matches against boolean values.

Link copied to clipboard

A predicate which matches against character-sequence values.

Link copied to clipboard

A set of predicate operations which supports comparison-based operations.

Link copied to clipboard

A set of predicate operations which supports equality-based operations.

Link copied to clipboard

A predicate which matches against floating-point values.

Link copied to clipboard

A predicate which matches against integral values.

Link copied to clipboard

Operations which may be used to join multiple predicates together.

Link copied to clipboard
interface PredicateOp

Predicate operations supported by the ConfigPredicate.

Link copied to clipboard

A set of predicate operations which supports string equality operations.

Properties

Link copied to clipboard
abstract val op: Op

The predicate operation to perform.

Link copied to clipboard
abstract val value: T

The predicate value to match against.

Functions

Link copied to clipboard
open fun and(p0: Predicate<in T>): Predicate<T>
Link copied to clipboard
open operator override fun invoke(p1: T): Boolean

Tests the given value against the predicate value using the operation.

Link copied to clipboard
open fun negate(): Predicate<T>
Link copied to clipboard
open fun or(p0: Predicate<in T>): Predicate<T>
Link copied to clipboard
open override fun test(t: T): Boolean