Show / Hide Table of Contents

Class ArrayFilter.WeightedFilter

A thin wrapper around a Filter allowing for sorting the filters according to their effectiveness.

Inheritance
object
ArrayFilter.WeightedFilter
Implements
IComparable
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Tangosol.Util.Filter
Assembly: Coherence.dll
Syntax
public class ArrayFilter.WeightedFilter : IComparable

Constructors

WeightedFilter(IFilter, int)

Construct the WeightedFilter.

Declaration
public WeightedFilter(IFilter filter, int effect)
Parameters
Type Name Description
IFilter filter

The wrapped filter.

int effect

The filter's effectiveness.

Fields

m_effect

The effectiveness of the wrapped filter.

Declaration
protected int m_effect
Field Value
Type Description
int

m_filter

The wrapped filter.

Declaration
protected IFilter m_filter
Field Value
Type Description
IFilter

Properties

Filter

Get the wrapped filter.

Declaration
public virtual IFilter Filter { get; }
Property Value
Type Description
IFilter

The wrapped filter

Methods

CompareTo(object)

Compares this WeightedFilter with the specified WeightedFilter for order. Returns a negative integer, zero, or a positive integer as this WeightedFilter's effectiveness is less than, equal to, or greater than the effectiveness of the specified WeightedFilter object.

Declaration
public virtual int CompareTo(object obj)
Parameters
Type Name Description
object obj

The Object to be compared

Returns
Type Description
int

A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings: Value Meaning Less than zero This instance is less than obj. Zero This instance is equal to obj. Greater than zero This instance is greater than obj.

Implements

IComparable
In this article
Back to top Copyright © 2000, 2024, Oracle and/or its affiliates.