|
|||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
DefaultFactHandleFactory.java | - | 100% | 100% | 100% |
|
1 | package org.drools.reteoo; | |
2 | ||
3 | import org.drools.FactHandle; | |
4 | ||
5 | public class DefaultFactHandleFactory | |
6 | implements | |
7 | FactHandleFactory | |
8 | { | |
9 | /** The fact id. */ | |
10 | private long id; | |
11 | ||
12 | /** The number of facts created - used for recency. */ | |
13 | private long counter; | |
14 | ||
15 | 107 | public final FactHandle newFactHandle() |
16 | { | |
17 | 107 | return newFactHandle( ++id ); |
18 | } | |
19 | ||
20 | 107 | public final FactHandle newFactHandle(long id) |
21 | { | |
22 | 107 | return new FactHandleImpl( id, |
23 | ++counter ); | |
24 | } | |
25 | } |
|