Skip to content

Commit

Permalink
chore: testing md files
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-logan committed Jul 13, 2024
1 parent 471d975 commit 94d0142
Show file tree
Hide file tree
Showing 9 changed files with 60 additions and 5 deletions.
Empty file.
Empty file.
6 changes: 5 additions & 1 deletion .idea/sonarlint/issuestore/index.pb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file.
Empty file.
6 changes: 5 additions & 1 deletion .idea/sonarlint/securityhotspotstore/index.pb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions docs/classes/CnpjValidator.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# CnpjValidator

The `CnpjValidator` class is used to validate CNPJ numbers. It has a single method, `cnpjIsValid`, which receives
a `String` as a parameter and returns a `boolean` value.

## How to use

```java
// You can import the class or use the full path

import io.github.multiform_validator.CnpjValidator;

public class Main {
public static void main(String[] args) {
String cnpjTrue = "69.807.668/0001-41";
String cnpjFalse = "61.807.661/0001-48";
System.out.println(CnpjValidator.cnpjIsValid(cnpjTrue)); // true
System.out.println(CnpjValidator.cnpjIsValid(cnpjFalse)); // false
}
}
```
27 changes: 27 additions & 0 deletions docs/classes/CpfValidator.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# CpfValidator

The `CpfValidator` class is used to validate CPF numbers. It has a single method, `cpfIsValid`, which receives a `String` as a parameter and returns a `boolean` value.

## How to use

```java
// You can also import the method as static or use the full path

import static io.github.multiform_validator.CpfValidator.cpfIsValid;

public class Main {
public static void main(String[] args) {
String cpfTrue = "123.456.789-09";
String cpfFalse = "123.456.789-10";
System.out.println(cpfIsValid(cpfTrue)); // true
System.out.println(cpfIsValid(cpfFalse)); // false
}
}
```

## Other methods

- [CnpjValidator](https://multiform-validator.github.io/java/classes/CnpjValidator)

## Return to [Home](https://multiform-validator.github.io/java/)
[]: # (end)

0 comments on commit 94d0142

Please sign in to comment.