X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fbits%2FCellAttributes.java;h=28dbe31d95637e97a00c0231d7ab7abeefebf13a;hb=6f8ff91a29056209f9fd5f40e2dcf1ae285e0210;hp=43e0b222c751f616e7edf99554a6c63707df59ec;hpb=6358f6e567422c8a5e880af36bec9ea798cc2cd4;p=fanfix.git diff --git a/src/jexer/bits/CellAttributes.java b/src/jexer/bits/CellAttributes.java index 43e0b22..28dbe31 100644 --- a/src/jexer/bits/CellAttributes.java +++ b/src/jexer/bits/CellAttributes.java @@ -3,7 +3,7 @@ * * The MIT License (MIT) * - * Copyright (C) 2016 Kevin Lamonte + * Copyright (C) 2017 Kevin Lamonte * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -218,6 +218,16 @@ public class CellAttributes { reset(); } + /** + * Public constructor makes a copy from another instance. + * + * @param that another CellAttributes instance + * @see #reset() + */ + public CellAttributes(final CellAttributes that) { + setTo(that); + } + /** * Comparison check. All fields must match to return true. *