Last change
on this file was cab1b7d, checked in by Blazho <aleksandar.blazhevski@…>, 8 months ago |
Added naracki page with view of all
|
-
Property mode
set to
100644
|
File size:
780 bytes
|
Rev | Line | |
---|
[cab1b7d] | 1 | package com.example.cookbook.model;
|
---|
| 2 |
|
---|
| 3 | import java.time.LocalDateTime;
|
---|
| 4 | import java.time.format.DateTimeFormatter;
|
---|
| 5 |
|
---|
| 6 | public class Naracka {
|
---|
| 7 |
|
---|
| 8 | private LocalDateTime vreme;
|
---|
| 9 |
|
---|
| 10 | private String telefon;
|
---|
| 11 |
|
---|
| 12 | public Naracka() {
|
---|
| 13 | }
|
---|
| 14 |
|
---|
| 15 | public LocalDateTime getVreme() {
|
---|
| 16 | return vreme;
|
---|
| 17 | }
|
---|
| 18 |
|
---|
| 19 | public void setVreme(LocalDateTime vreme) {
|
---|
| 20 | this.vreme = vreme;
|
---|
| 21 | }
|
---|
| 22 |
|
---|
| 23 | public String getTelefon() {
|
---|
| 24 | return telefon;
|
---|
| 25 | }
|
---|
| 26 |
|
---|
| 27 | public void setTelefon(String telefon) {
|
---|
| 28 | this.telefon = telefon;
|
---|
| 29 | }
|
---|
| 30 |
|
---|
| 31 | public Naracka(LocalDateTime vreme, String telefon) {
|
---|
| 32 | this.vreme = vreme;
|
---|
| 33 | this.telefon = telefon;
|
---|
| 34 | }
|
---|
| 35 | public String getDataFormatirana(){
|
---|
| 36 | return vreme.format(DateTimeFormatter.ofPattern("yyyy-MMM-dd HH:mm"));
|
---|
| 37 | }
|
---|
| 38 |
|
---|
| 39 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.