Top Description Fields Constructors Methods
org.glassfish.hk2.internal

public Class IndexedFilterImpl

extends Object
implements IndexedFilter
Class Inheritance
All Implemented Interfaces
org.glassfish.hk2.api.IndexedFilter, org.glassfish.hk2.api.Filter
Imports
org.glassfish.hk2.api.Descriptor, .IndexedFilter

Implementation created by the builder
Author
jwells

Field Summary

Modifier and TypeField and Description
private final String
private final String

Constructor Summary

AccessConstructor and Description
public
IndexedFilterImpl(String contract, String name)

Created by the builder

Method Summary

Modifier and TypeMethod and Description
public String
getAdvertisedContract()

Implements org.glassfish.hk2.api.IndexedFilter.getAdvertisedContract.

If this returns non-null then this index will be used to limit the set of Descriptors that will be passed to the matches method.

public String
getName()

Implements org.glassfish.hk2.api.IndexedFilter.getName.

If this returns non-null then this name will be used to limit the set of Descriptors that will be passed to the matches method.

public boolean
matches(Descriptor d)

Implements org.glassfish.hk2.api.Filter.matches.

Returns true if this filter matches the given object

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

contractback to summary
private final String contract
nameback to summary
private final String name

Constructor Detail

IndexedFilterImplback to summary
public IndexedFilterImpl(String contract, String name)

Created by the builder

Method Detail

getAdvertisedContractback to summary
public String getAdvertisedContract()

Implements org.glassfish.hk2.api.IndexedFilter.getAdvertisedContract.

Doc from org.glassfish.hk2.api.IndexedFilter.getAdvertisedContract.

If this returns non-null then this index will be used to limit the set of Descriptors that will be passed to the matches method. Only those descriptors that have an AdverisedContract of this value will be passed to the matches method.

Annotations
@Override
getNameback to summary
public String getName()

Implements org.glassfish.hk2.api.IndexedFilter.getName.

Doc from org.glassfish.hk2.api.IndexedFilter.getName.

If this returns non-null then this name will be used to limit the set of Descriptors that will be passed to the matches method. Only those descriptors that has an name of this value will be passed to the matches method.

Annotations
@Override
matchesback to summary
public boolean matches(Descriptor d)

Implements org.glassfish.hk2.api.Filter.matches.

Doc from org.glassfish.hk2.api.Filter.matches.

Returns true if this filter matches the given object

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override