Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/javadoc-upload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy Javadoc

on:
push:
branches:
- master
- main

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Prepare output dir
run: |
mkdir -p ./javadoc
- name: Deploy JavaDoc 🚀
uses: MathieuSoysal/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
javadoc-branch: javadoc
java-version: 17
target-folder: javadoc
project: gradle
- name: Publish documentation online
run: |

13 changes: 13 additions & 0 deletions src/main/java/me/cortex/TreeCracker/LCG/LcgComparison.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
package me.cortex.TreeCracker.LCG;

/**
* Class to represent a Comparaison for LCG.
*
*/
public class LcgComparison<T> {
public T comparingTo;
public Type comparingType;
boolean configured = false;


/**
* Set this.comparingTo attribute of current class to the first argument compraingTo and comparingType attribute to Type.greaterThan.
*
*
* Argument 1, comparingTo: value set for this.comparingTo
*
* returns: nothing.
*/
public void greaterThan(T comparingTo) {
if (configured)
throw new IllegalStateException("LcgComparison already configured");
Expand Down