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

com.alon.spring.crud.api.controller.input.SearchInput Maven / Gradle / Ivy

package com.alon.spring.crud.api.controller.input;

import org.springframework.data.jpa.domain.Specification;
import org.springframework.lang.Nullable;

public abstract class SearchInput {

    private String filter;

    public String getFilter() {
        return filter;
    }

    public void setFilter(String filter) {
        this.filter = filter;
    }

    public boolean filterPresent() {
        return filter != null;
    }

    public boolean filterNotPresent() {
        return filter == null;
    }

    public abstract @Nullable Specification toSpecification();
    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy