Commit a40dbb42 authored by Jeroen Hoffman's avatar Jeroen Hoffman

CMS-16 in search-service master, remove all redundant 'public' modifiers from...

CMS-16 in search-service master, remove all redundant 'public' modifiers from interface methods/fields
parent bbc3baee
/*
* Copyright 2012-2013 Hippo B.V. (http://www.onehippo.com)
* Copyright 2012-2016 Hippo B.V. (http://www.onehippo.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......@@ -28,39 +28,39 @@ public interface FieldsDocument {
* Return type name
* @return
*/
public String getPrimaryTypeName();
String getPrimaryTypeName();
/**
* Returns content ID
* @return
*/
public ContentId getContentId();
ContentId getContentId();
/**
* Checks whether field with the name exists
* @param name
* @return
*/
public boolean hasField(String name);
boolean hasField(String name);
/**
* @return a list of fields defined in this document
*/
public Collection<String> getFieldNames();
Collection<String> getFieldNames();
/**
* Get the value or collection of values for a given field.
*/
public Object getFieldValue(String name);
Object getFieldValue(String name);
/**
* Get a collection of values for a given field name
*/
public Collection<Object> getFieldValues(String name);
Collection<Object> getFieldValues(String name);
/**
* returns the first value for a field
*/
public Object getFirstFieldValue(String name);
Object getFirstFieldValue(String name);
}
......@@ -17,7 +17,7 @@ package org.onehippo.cms7.services.search.query;
public interface Query {
public Query EMPTY = new EmptyQuery();
Query EMPTY = new EmptyQuery();
/**
* Instructs the search service to return the de-duplicated set of parent nodes of the search results. This is
......
/*
* Copyright 2012-2013 Hippo B.V. (http://www.onehippo.com)
* Copyright 2012-2016 Hippo B.V. (http://www.onehippo.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......@@ -24,12 +24,12 @@ public interface Highlight extends Serializable {
* Returns the field name for this highlight excerpts.
* @return
*/
public String getField();
String getField();
/**
* Returns the excerpts of this highlight.
* @return
*/
public List<String> getExcerpts();
List<String> getExcerpts();
}
/*
* Copyright 2012-2013 Hippo B.V. (http://www.onehippo.com)
* Copyright 2012-2016 Hippo B.V. (http://www.onehippo.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......@@ -27,16 +27,16 @@ public interface Hit extends Serializable {
* Returns search document object which comes from the underlying search engine.
* @return
*/
public SearchDocument getSearchDocument();
SearchDocument getSearchDocument();
/**
* @return the score for this hit and -1 if there is no score available
*/
public float getScore();
float getScore();
/**
* @return the {@link List} of {@link Highlight}s or an empty list if there are no highlights
*/
public Map<String, Highlight> getHighlights();
Map<String, Highlight> getHighlights();
}
/*
* Copyright 2012-2013 Hippo B.V. (http://www.onehippo.com)
* Copyright 2012-2016 Hippo B.V. (http://www.onehippo.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......@@ -20,7 +20,7 @@ import java.util.NoSuchElementException;
public interface HitIterator extends Iterator<Hit> {
public HitIterator EMPTY = new HitIterator() {
HitIterator EMPTY = new HitIterator() {
@Override
public void skip(final int skipCount) {
}
......@@ -58,6 +58,6 @@ public interface HitIterator extends Iterator<Hit> {
* Returns the next content in the iteration.
* @return
*/
public Hit nextHit();
Hit nextHit();
}
/*
* Copyright 2012-2013 Hippo B.V. (http://www.onehippo.com)
* Copyright 2012-2016 Hippo B.V. (http://www.onehippo.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......@@ -20,7 +20,7 @@ package org.onehippo.cms7.services.search.result;
*/
public interface QueryResult {
public QueryResult EMPTY = new QueryResult() {
QueryResult EMPTY = new QueryResult() {
@Override
public HitIterator getHits() {
......@@ -38,13 +38,13 @@ public interface QueryResult {
* Returns returned content item list
* @return
*/
public HitIterator getHits();
HitIterator getHits();
/**
* Returns the total count of hits
* @return the total count of hits
*/
public long getTotalHitCount();
long getTotalHitCount();
}
/*
* Copyright 2012-2013 Hippo B.V. (http://www.onehippo.com)
* Copyright 2012-2016 Hippo B.V. (http://www.onehippo.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......@@ -31,14 +31,14 @@ public interface SearchService {
* @return
* @throws SearchServiceException
*/
public boolean isAlive();
boolean isAlive();
/**
* Creates search query
* @return
* @throws SearchServiceException
*/
public InitialQuery createQuery() throws SearchServiceException;
InitialQuery createQuery() throws SearchServiceException;
/**
* Performs search query
......@@ -46,7 +46,7 @@ public interface SearchService {
* @return
* @throws SearchServiceException
*/
public QueryResult search(Query searchQuery) throws SearchServiceException;
QueryResult search(Query searchQuery) throws SearchServiceException;
/**
* Returns a reflected view on a query.
......@@ -55,6 +55,6 @@ public interface SearchService {
* @return
* @throws SearchServiceException
*/
public QueryNode asQueryNode(Query query) throws SearchServiceException;
QueryNode asQueryNode(Query query) throws SearchServiceException;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment