<commit_before># Tago - Java Lib
Official Java lib for Tago

# Code Status
Work in progress

# Documentation
## Usage
### Insert Data
**.insert(Data);**

```Java
Device device = new Device("put_your_token_here");

//Data to insert
Data data = new Data();
        data.variable = "API-Teste";
        data.unit = "%";
        data.value = "25";
        data.type = "text";
        data.time = new Date();
        data.location = new Location(40.792673, -98.683232);

device.insert(data);
```

### Find Data
**.find(String, String);**

```java
// You can check documentation to see all options you can use in query.
List<Data> dataList = device.find(Constant.Find.FILTER, Constant.Filter.TYPE);

Integer dataCount = device.count();
```

### Delete Data
**.delete("String");**

```java

device.delete("put_the_data_id_here");
// or
device.delete(); // Without the ID the last record will be deleted
```

### Update Data

```java
        device.update("put_tye_data_id_here", data);
// or
        device.update(data);
```

### Listening new data by Socket

```java
//Not implemented yet
```

# License
Tago lib client for Node.js is released under the [Copyright License](https://github.com/tago-io/tago-nodejs/blob/master/LICENSE.md).<commit_msg>Implemented the method Update<commit_after># Tago - Java Lib
Official Java lib for Tago

# Code Status
Work in progress

# Documentation
## Usage
### Insert Data
**.insert(Data);**

```Java
Device device = new Device("put_your_token_here");

//Data to insert
Data data = new Data();
        data.variable = "API-Teste";
        data.unit = "%";
        data.value = "25";
        data.type = "text";
        data.time = new Date();
        data.location = new Location(40.792673, -98.683232);

device.insert(data);
```

### Find Data
**.find(String, String);**

```java
// You can check documentation to see all options you can use in query.
List<Data> dataList = device.find(Constant.Find.FILTER, Constant.Filter.TYPE);

Integer dataCount = device.count();
```

### Delete Data
**.delete(String);**

```java

device.delete("put_the_data_id_here");
// or
device.delete(); // Without the ID the last record will be deleted
```

### Update Data
**.delete(String, Data);**

```java

device.update("put_tye_data_id_here", data);
// or
device.update(data);
```

### Listening new data by Socket

```java
//Not implemented yet
```

# License
Tago lib client for Node.js is released under the [Copyright License](https://github.com/tago-io/tago-nodejs/blob/master/LICENSE.md).
{'fraction_non_alphanumeric': 0.16281847133757962, 'fraction_numerical': 0.014331210191082803, 'mean_word_length': 3.6365313653136533, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1902946', 'n_tokens_mistral': 835, 'n_tokens_neox': 792, 'n_words': 234}