All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tools.devnull.trugger.Finder Maven / Gradle / Ivy

There is a newer version: 6.3.0
Show newest version
/*
 * Copyright 2009-2014 Marcelo Guimarães
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 *
 * You may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *           http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package tools.devnull.trugger;

import java.util.List;

/**
 * Interface that defines a class capable of search a source for specific
 * objects.
 *
 * @param  the result type
 * @author Marcelo Guimarães
 * @since 2.0
 */
public interface Finder {

  /**
   * Finds the object with the specified name in a target.
   * 

* The result may return null if no object with the specified * name is found. * * @param name the object name to find. * @return the component for selecting the target. */ Result find(String name); /** * Finds all objects in a target. * * @return the component for selecting the target. */ Result, Object> findAll(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy