-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
133 additions
and
20 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package cn.fawdlstty.smlite; | ||
|
||
public class Tuple2<A extends Comparable, B extends Comparable> implements Comparable { | ||
public final A first; | ||
public final B second; | ||
|
||
public Tuple2(A a, B b) { | ||
this.first = a; | ||
this.second = b; | ||
} | ||
|
||
@Override | ||
public int compareTo(Object o) { | ||
Tuple2<A,B> _o = (Tuple2<A,B>) o; | ||
if (this.first == _o.first && this.second == _o.second) | ||
return 0; | ||
return -1; | ||
} | ||
} |
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
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
2 changes: 1 addition & 1 deletion
2
src_java/JSMLite/src/cn/fawdlstty/smlite/internface/IAction_s.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package cn.fawdlstty.smlite.internface; | ||
|
||
public interface IAction_s<TState extends Enum> { | ||
public interface IAction_s<TState> { | ||
public void call (TState state) throws Exception; | ||
} |
2 changes: 1 addition & 1 deletion
2
src_java/JSMLite/src/cn/fawdlstty/smlite/internface/IAction_sa.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package cn.fawdlstty.smlite.internface; | ||
|
||
public interface IAction_sa<TState extends Enum> { | ||
public interface IAction_sa<TState> { | ||
public void call (TState state, Object[] args) throws Exception; | ||
} |
2 changes: 1 addition & 1 deletion
2
src_java/JSMLite/src/cn/fawdlstty/smlite/internface/IAction_st.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package cn.fawdlstty.smlite.internface; | ||
|
||
public interface IAction_st<TState extends Enum, TTrigger extends Enum> { | ||
public interface IAction_st<TState, TTrigger> { | ||
public void call (TState state, TTrigger trigger) throws Exception; | ||
} |
2 changes: 1 addition & 1 deletion
2
src_java/JSMLite/src/cn/fawdlstty/smlite/internface/IAction_sta.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package cn.fawdlstty.smlite.internface; | ||
|
||
public interface IAction_sta<TState extends Enum, TTrigger extends Enum> { | ||
public interface IAction_sta<TState, TTrigger> { | ||
public void call (TState state, TTrigger trigger, Object[] args) throws Exception; | ||
} |
2 changes: 1 addition & 1 deletion
2
src_java/JSMLite/src/cn/fawdlstty/smlite/internface/IAction_t.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package cn.fawdlstty.smlite.internface; | ||
|
||
public interface IAction_t<TTrigger extends Enum> { | ||
public interface IAction_t<TTrigger> { | ||
public void call (TTrigger trigger) throws Exception; | ||
} |
2 changes: 1 addition & 1 deletion
2
src_java/JSMLite/src/cn/fawdlstty/smlite/internface/IAction_ta.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package cn.fawdlstty.smlite.internface; | ||
|
||
public interface IAction_ta<TTrigger extends Enum> { | ||
public interface IAction_ta<TTrigger> { | ||
public void call (TTrigger trigger, Object[] args) throws Exception; | ||
} |
2 changes: 1 addition & 1 deletion
2
src_java/JSMLite/src/cn/fawdlstty/smlite/internface/IFunc_.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package cn.fawdlstty.smlite.internface; | ||
|
||
public interface IFunc_<TState extends Enum> { | ||
public interface IFunc_<TState> { | ||
public TState call () throws Exception; | ||
} |
2 changes: 1 addition & 1 deletion
2
src_java/JSMLite/src/cn/fawdlstty/smlite/internface/IFunc_a.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package cn.fawdlstty.smlite.internface; | ||
|
||
public interface IFunc_a<TState extends Enum> { | ||
public interface IFunc_a<TState> { | ||
public TState call (Object[] args) throws Exception; | ||
} |
2 changes: 1 addition & 1 deletion
2
src_java/JSMLite/src/cn/fawdlstty/smlite/internface/IFunc_s.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package cn.fawdlstty.smlite.internface; | ||
|
||
public interface IFunc_s<TState extends Enum> { | ||
public interface IFunc_s<TState> { | ||
public TState call (TState state) throws Exception; | ||
} |
2 changes: 1 addition & 1 deletion
2
src_java/JSMLite/src/cn/fawdlstty/smlite/internface/IFunc_sa.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package cn.fawdlstty.smlite.internface; | ||
|
||
public interface IFunc_sa<TState extends Enum> { | ||
public interface IFunc_sa<TState> { | ||
public TState call (TState state, Object[] args) throws Exception; | ||
} |
2 changes: 1 addition & 1 deletion
2
src_java/JSMLite/src/cn/fawdlstty/smlite/internface/IFunc_st.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package cn.fawdlstty.smlite.internface; | ||
|
||
public interface IFunc_st<TState extends Enum, TTrigger extends Enum> { | ||
public interface IFunc_st<TState, TTrigger> { | ||
public TState call (TState state, TTrigger trigger) throws Exception; | ||
} |
2 changes: 1 addition & 1 deletion
2
src_java/JSMLite/src/cn/fawdlstty/smlite/internface/IFunc_sta.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package cn.fawdlstty.smlite.internface; | ||
|
||
public interface IFunc_sta<TState extends Enum, TTrigger extends Enum> { | ||
public interface IFunc_sta<TState, TTrigger> { | ||
public TState call (TState state, TTrigger trigger, Object[] args) throws Exception; | ||
} |
2 changes: 1 addition & 1 deletion
2
src_java/JSMLite/src/cn/fawdlstty/smlite/internface/IFunc_t.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package cn.fawdlstty.smlite.internface; | ||
|
||
public interface IFunc_t<TState extends Enum, TTrigger extends Enum> { | ||
public interface IFunc_t<TState, TTrigger> { | ||
public TState call (TTrigger trigger) throws Exception; | ||
} |
2 changes: 1 addition & 1 deletion
2
src_java/JSMLite/src/cn/fawdlstty/smlite/internface/IFunc_ta.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package cn.fawdlstty.smlite.internface; | ||
|
||
public interface IFunc_ta<TState extends Enum, TTrigger extends Enum> { | ||
public interface IFunc_ta<TState, TTrigger> { | ||
public TState call (TTrigger trigger, Object[] args) throws Exception; | ||
} |