This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface Consumer<T> { | |
void accept(T t); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Pagination extends RecyclerView.OnScrollListener { | |
public static final int LAST_POSITION = 1; | |
public static final int LAST_POSITION_COMPLETE = 2; | |
private int pageNumber = 1; | |
private boolean allowScroll; | |
private OnLoadMoreListener onLoadMoreListener; | |
private int positionType = LAST_POSITION; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task sourcesJar(type: Jar) { | |
from android.sourceSets.main.java.srcDirs | |
archiveClassifier.set('sources') | |
archivesBaseName ="myLibrary-1.1.0" | |
} | |
task javadoc(type: Javadoc) { | |
source = android.sourceSets.main.java.sourceFiles | |
classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) | |
android.libraryVariants.all { variant -> | |
if (variant.name == 'release') { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.vanskarner.adapters.common.adapters; | |
import androidx.annotation.NonNull; | |
import java.util.List; | |
public interface AdapterOperations { | |
interface Endless { |