annotate src/main/csharp/jp.ac.u-ryukyu.ie.cr/jungle/util/Pair.cs @ 0:dec15de2c6ff

first commit
author Kazuma
date Tue, 21 Jun 2016 17:11:12 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
dec15de2c6ff first commit
Kazuma
parents:
diff changeset
1 using UnityEngine;
dec15de2c6ff first commit
Kazuma
parents:
diff changeset
2 using System.Collections;
dec15de2c6ff first commit
Kazuma
parents:
diff changeset
3
dec15de2c6ff first commit
Kazuma
parents:
diff changeset
4 public class Pair<L, R> {
dec15de2c6ff first commit
Kazuma
parents:
diff changeset
5 private L left;
dec15de2c6ff first commit
Kazuma
parents:
diff changeset
6 private R right;
dec15de2c6ff first commit
Kazuma
parents:
diff changeset
7
dec15de2c6ff first commit
Kazuma
parents:
diff changeset
8 public Pair(L _left,R _right){
dec15de2c6ff first commit
Kazuma
parents:
diff changeset
9 left = _left;
dec15de2c6ff first commit
Kazuma
parents:
diff changeset
10 right = _right;
dec15de2c6ff first commit
Kazuma
parents:
diff changeset
11 }
dec15de2c6ff first commit
Kazuma
parents:
diff changeset
12 // not same name , add s.
dec15de2c6ff first commit
Kazuma
parents:
diff changeset
13 public L lefts(){
dec15de2c6ff first commit
Kazuma
parents:
diff changeset
14 return left;
dec15de2c6ff first commit
Kazuma
parents:
diff changeset
15 }
dec15de2c6ff first commit
Kazuma
parents:
diff changeset
16
dec15de2c6ff first commit
Kazuma
parents:
diff changeset
17 public R rights(){
dec15de2c6ff first commit
Kazuma
parents:
diff changeset
18 return right;
dec15de2c6ff first commit
Kazuma
parents:
diff changeset
19 }
dec15de2c6ff first commit
Kazuma
parents:
diff changeset
20
dec15de2c6ff first commit
Kazuma
parents:
diff changeset
21 }